summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-07-01 15:03:49 +0000
committerpfg <pfg@FreeBSD.org>2015-07-01 15:03:49 +0000
commit517a5ffe96e74555736a6a797879390fe59f18ba (patch)
tree416b5593e53591e239e1b9a3665d532e3dff7aa5 /usr.sbin
parent3a7588b223c14c50f02b5602c35a8f73b6d93a2b (diff)
downloadFreeBSD-src-517a5ffe96e74555736a6a797879390fe59f18ba.zip
FreeBSD-src-517a5ffe96e74555736a6a797879390fe59f18ba.tar.gz
MFC 284913:
dconschat(8): Use NULL instead of 0 for the last argument in execl(3) Found while experimenting with the gcc sentinel attribute.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/dconschat/dconschat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/dconschat/dconschat.c b/usr.sbin/dconschat/dconschat.c
index af35e01..dba568a 100644
--- a/usr.sbin/dconschat/dconschat.c
+++ b/usr.sbin/dconschat/dconschat.c
@@ -229,7 +229,7 @@ dconschat_fork_gdb(struct dcons_state *dc, struct dcons_port *p)
snprintf(buf, 256, "\n[fork %s]\n", com);
write(p->outfd, buf, strlen(buf));
- execl("/bin/sh", "/bin/sh", "-c", com, 0);
+ execl("/bin/sh", "/bin/sh", "-c", com, NULL);
snprintf(buf, 256, "\n[fork failed]\n");
write(p->outfd, buf, strlen(buf));
OpenPOWER on IntegriCloud