summaryrefslogtreecommitdiff
path: root/usr.bin/tip
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
commit4bc6feceb6ebda151502af1a7ed21ae8c0fad3ac (patch)
tree42a0edee6a5c4c8473190df03bae288bbae562b9 /usr.bin/tip
parent8e969ac07006af925e6fbcbf1a1cb17064ef921e (diff)
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 'usr.bin/tip')
-rw-r--r--usr.bin/tip/cmds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tip/cmds.c b/usr.bin/tip/cmds.c
index 23b27ecf701..0ba0156ffc5 100644
--- a/usr.bin/tip/cmds.c
+++ b/usr.bin/tip/cmds.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.28 2006/04/03 16:13:34 tls Exp $ */
+/* $NetBSD: cmds.c,v 1.29 2006/05/11 00:22:53 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: cmds.c,v 1.28 2006/04/03 16:13:34 tls Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.29 2006/05/11 00:22:53 mrg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -586,7 +586,7 @@ shell(char dummy)
cp = value(SHELL);
else
cp++;
- execl(value(SHELL), cp, 0);
+ execl(value(SHELL), cp, NULL);
fprintf(stderr, "\r\n");
err(1, "can't execl");
/* NOTREACHED */
@@ -687,7 +687,7 @@ execute(char *s)
cp = value(SHELL);
else
cp++;
- execl(value(SHELL), cp, "-c", s, 0);
+ execl(value(SHELL), cp, "-c", s, NULL);
}
int
@@ -875,7 +875,7 @@ expand(char name[])
dup(pivec[1]);
close(pivec[1]);
close(2);
- execl(Shell, Shell, "-c", cmdbuf, 0);
+ execl(Shell, Shell, "-c", cmdbuf, NULL);
_exit(1);
}
if (mypid == -1) {