Replace a couple uses of S_IREAD with our platform-aware BS_IREAD

git-svn-id: https://svn.eduke32.com/eduke32@2720 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2012-06-02 00:02:57 +00:00
parent cbbaec7694
commit f3c009b146

View file

@ -82,9 +82,9 @@ int32_t SafeOpenRead(const char *filename, int32_t filetype)
switch (filetype) switch (filetype)
{ {
case filetype_binary: case filetype_binary:
return SafeOpen(filename, O_RDONLY|O_BINARY, S_IREAD); return SafeOpen(filename, O_RDONLY|O_BINARY, BS_IREAD);
case filetype_text: case filetype_text:
return SafeOpen(filename, O_RDONLY|O_TEXT, S_IREAD); return SafeOpen(filename, O_RDONLY|O_TEXT, BS_IREAD);
default: default:
initprintf("SafeOpenRead: Illegal filetype specified"); initprintf("SafeOpenRead: Illegal filetype specified");
return -1; return -1;