From owner-svn-src-all@freebsd.org Mon Apr 18 15:05:49 2016 Return-Path: Delivered-To: svn-src-all@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 7FAB9B133B4; Mon, 18 Apr 2016 15:05:49 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 4D3C411D5; Mon, 18 Apr 2016 15:05:49 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3IF5mw4000585; Mon, 18 Apr 2016 15:05:48 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3IF5mwv000584; Mon, 18 Apr 2016 15:05:48 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201604181505.u3IF5mwv000584@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 18 Apr 2016 15:05:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298213 - head/libexec/rbootd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 15:05:49 -0000 Author: pfg Date: Mon Apr 18 15:05:48 2016 New Revision: 298213 URL: https://svnweb.freebsd.org/changeset/base/298213 Log: rbootd: use NULL instead of zero for pointers. Modified: head/libexec/rbootd/bpf.c Modified: head/libexec/rbootd/bpf.c ============================================================================== --- head/libexec/rbootd/bpf.c Mon Apr 18 15:01:59 2016 (r298212) +++ head/libexec/rbootd/bpf.c Mon Apr 18 15:05:48 2016 (r298213) @@ -241,7 +241,7 @@ BpfGetIntfName(char **errmsg) ifrp = ibuf; ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); - mp = 0; + mp = NULL; minunit = 666; for (; ifrp < ifend; ++ifrp) { if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) { @@ -271,7 +271,7 @@ BpfGetIntfName(char **errmsg) } (void) close(fd); - if (mp == 0) { + if (mp == NULL) { (void) strcpy(errbuf, "bpf: no interfaces found"); return(NULL); }