summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-05-05 07:49:46 +0000
committerbapt <bapt@FreeBSD.org>2015-05-05 07:49:46 +0000
commit0c925e0867103f8394f91090503680f143d47d54 (patch)
treebd77affbe18f5dff28f1bb35ed0f79d34dc320e3
parent642b9f517339f568848ec55757ab4a9465726fe1 (diff)
downloadFreeBSD-src-0c925e0867103f8394f91090503680f143d47d54.zip
FreeBSD-src-0c925e0867103f8394f91090503680f143d47d54.tar.gz
Explicitly use O_RDONLY instead of 0
-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 7298713..cc6e0c4 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 (;;) {
OpenPOWER on IntegriCloud