summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit8636b161b333b18525b6f5ffc5139079c29c0d63 (patch)
treea109115514a8774e981280efca775db8a410df5b /usr.bin/tip
parentef44874abb9460f2956eba8e3233154af304f5b1 (diff)
downloadFreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip
FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/tip/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tip/cmds.c b/usr.bin/tip/tip/cmds.c
index 10198ba..28b03ef 100644
--- a/usr.bin/tip/tip/cmds.c
+++ b/usr.bin/tip/tip/cmds.c
@@ -765,7 +765,7 @@ shell()
else
cp++;
shell_uid();
- execl(value(SHELL), cp, 0);
+ execl(value(SHELL), cp, (char *)0);
printf("\r\ncan't execl!\r\n");
exit(1);
}
@@ -865,7 +865,7 @@ execute(s)
else
cp++;
shell_uid();
- execl(value(SHELL), cp, "-c", s, 0);
+ execl(value(SHELL), cp, "-c", s, (char *)0);
}
static int
@@ -1051,7 +1051,7 @@ expand(name)
close(pivec[1]);
close(2);
shell_uid();
- execl(Shell, Shell, "-c", cmdbuf, 0);
+ execl(Shell, Shell, "-c", cmdbuf, (char *)0);
_exit(1);
}
if (pid == -1) {
OpenPOWER on IntegriCloud