Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2015 20:32:04 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284913 - head/usr.sbin/dconschat
Message-ID:  <201506282032.t5SKW4E7030594@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Sun Jun 28 20:32:03 2015
New Revision: 284913
URL: https://svnweb.freebsd.org/changeset/base/284913

Log:
  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

Modified:
  head/usr.sbin/dconschat/dconschat.c

Modified: head/usr.sbin/dconschat/dconschat.c
==============================================================================
--- head/usr.sbin/dconschat/dconschat.c	Sun Jun 28 16:43:07 2015	(r284912)
+++ head/usr.sbin/dconschat/dconschat.c	Sun Jun 28 20:32:03 2015	(r284913)
@@ -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?201506282032.t5SKW4E7030594>