dconschat(8): Use NULL instead of 0 for the last argument in execl(3)

Found while experimenting with the gcc sentinel attribute.

MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2015-06-28 20:32:03 +00:00
parent 619e4f78fe
commit 3237628999
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284913

View File

@ -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));