summaryrefslogtreecommitdiffstats
path: root/monop/execute.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-09-11 13:54:08 +0000
committerhubertf <hubertf@NetBSD.org>1998-09-11 13:54:08 +0000
commitf160a2bb8a38a5eda433e3ffca2d93671077a17f (patch)
treedbc9843cdd4f979c563b92d9e37eae12292a59c6 /monop/execute.c
parent3e26d0d7b14fab9f1091865bc3f6686fa2b42d14 (diff)
downloadbsdgames-darwin-f160a2bb8a38a5eda433e3ffca2d93671077a17f.tar.gz
bsdgames-darwin-f160a2bb8a38a5eda433e3ffca2d93671077a17f.tar.zst
bsdgames-darwin-f160a2bb8a38a5eda433e3ffca2d93671077a17f.zip
use symbolic constants for signals & open(2), as per PR#5867
Diffstat (limited to 'monop/execute.c')
-rw-r--r--monop/execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/monop/execute.c b/monop/execute.c
index 40f2b776..3e9aa0a3 100644
--- a/monop/execute.c
+++ b/monop/execute.c
@@ -1,4 +1,4 @@
-/* $NetBSD: execute.c,v 1.4 1997/10/12 17:45:09 christos Exp $ */
+/* $NetBSD: execute.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: execute.c,v 1.4 1997/10/12 17:45:09 christos Exp $");
+__RCSID("$NetBSD: execute.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $");
#endif
#endif /* not lint */
@@ -249,7 +249,7 @@ char *file;
char *start, *end;
STAT sbuf;
- if ((inf=open(file, 0)) < 0) {
+ if ((inf=open(file, O_RDONLY)) < 0) {
perror(file);
return FALSE;
}