Explicitly use O_RDONLY instead of 0

This commit is contained in:
Baptiste Daroussin 2015-05-05 07:49:46 +00:00
parent 4fc9d67654
commit 1e0ae120f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282453

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 (;;) {