From owner-svn-src-stable@freebsd.org Wed Jul 1 15:03:50 2015 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C04F0991FD0; Wed, 1 Jul 2015 15:03:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE1D42F27; Wed, 1 Jul 2015 15:03:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t61F3o1Z075956; Wed, 1 Jul 2015 15:03:50 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t61F3oAg075955; Wed, 1 Jul 2015 15:03:50 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201507011503.t61F3oAg075955@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Wed, 1 Jul 2015 15:03:50 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 15:03:50 -0000 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));