Date: Wed, 1 Jul 2015 15:03:50 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r285007 - stable/10/usr.sbin/dconschat Message-ID: <201507011503.t61F3oAg075955@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Wed Jul 1 15:03:49 2015 New Revision: 285007 URL: https://svnweb.freebsd.org/changeset/base/285007 Log: MFC 284913: dconschat(8): Use NULL instead of 0 for the last argument in execl(3) Found while experimenting with the gcc sentinel attribute. Modified: stable/10/usr.sbin/dconschat/dconschat.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/dconschat/dconschat.c ============================================================================== --- stable/10/usr.sbin/dconschat/dconschat.c Wed Jul 1 14:54:13 2015 (r285006) +++ stable/10/usr.sbin/dconschat/dconschat.c Wed Jul 1 15:03:49 2015 (r285007) @@ -229,7 +229,7 @@ dconschat_fork_gdb(struct dcons_state *d 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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507011503.t61F3oAg075955>