summaryrefslogtreecommitdiffstats
path: root/larn
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2006-05-11 00:22:52 +0000
committermrg <mrg@NetBSD.org>2006-05-11 00:22:52 +0000
commit24a934cdee9f410c2b1106f81040c195558ced7c (patch)
tree825adf7e3b887677337fcc343bcc069cdb1ddae7 /larn
parent6e71b7bf6cbc783c53db4dc7572aaf2ce729f46e (diff)
downloadbsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.tar.gz
bsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.tar.zst
bsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.zip
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
Diffstat (limited to 'larn')
-rw-r--r--larn/tok.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/larn/tok.c b/larn/tok.c
index 9bacaed4..a713a0c5 100644
--- a/larn/tok.c
+++ b/larn/tok.c
@@ -1,9 +1,9 @@
-/* $NetBSD: tok.c,v 1.5 1997/10/18 20:03:54 christos Exp $ */
+/* $NetBSD: tok.c,v 1.6 2006/05/11 00:22:52 mrg Exp $ */
/* tok.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: tok.c,v 1.5 1997/10/18 20:03:54 christos Exp $");
+__RCSID("$NetBSD: tok.c,v 1.6 2006/05/11 00:22:52 mrg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -98,7 +98,7 @@ yylex()
clear();/* scrolling region, home, clear, no
* attributes */
if ((ic = fork()) == 0) { /* child */
- execl("/bin/csh", 0);
+ execl("/bin/csh", "/bin/csh", NULL);
exit(1);
}
wait(0);