Explicitly use O_RDONLY instead of 0

This commit is contained in:
bapt 2015-05-05 07:49:46 +00:00
parent 642b9f5173
commit 0c925e0867

View File

@ -79,7 +79,7 @@ tgetent(char *bp, char *name, char *file)
tbuf = bp;
tf = 0;
filename = file;
tf = open(filename, 0);
tf = open(filename, O_RDONLY);
if (tf < 0)
return (-1);
for (;;) {