summaryrefslogtreecommitdiff
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-05 07:49:46 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-05 07:49:46 +0000
commit1e0ae120f5d963d537e7eb113c0d44614f7dd395 (patch)
treebd77affbe18f5dff28f1bb35ed0f79d34dc320e3 /usr.bin/vgrind
parent4fc9d676541b0289ea809a0d43a046fa899ce64b (diff)
downloadsrc-test2-1e0ae120f5d963d537e7eb113c0d44614f7dd395.tar.gz
src-test2-1e0ae120f5d963d537e7eb113c0d44614f7dd395.zip
Explicitly use O_RDONLY instead of 0
Notes
Notes: svn path=/head/; revision=282453
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/vgrindefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vgrind/vgrindefs.c b/usr.bin/vgrind/vgrindefs.c
index 729871387bb3..cc6e0c4fa109 100644
--- a/usr.bin/vgrind/vgrindefs.c
+++ b/usr.bin/vgrind/vgrindefs.c
@@ -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 (;;) {