From owner-svn-src-stable-8@FreeBSD.ORG Sat Aug 13 00:56:42 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 807931065673; Sat, 13 Aug 2011 00:56:42 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 66B9E8FC14; Sat, 13 Aug 2011 00:56:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7D0ug0B089953; Sat, 13 Aug 2011 00:56:42 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7D0ugmR089946; Sat, 13 Aug 2011 00:56:42 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201108130056.p7D0ugmR089946@svn.freebsd.org> From: Xin LI Date: Sat, 13 Aug 2011 00:56:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224809 - stable/8/usr.sbin/rpcbind X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 00:56:42 -0000 Author: delphij Date: Sat Aug 13 00:56:42 2011 New Revision: 224809 URL: http://svn.freebsd.org/changeset/base/224809 Log: MFC r224001: Use prototype. While I'm there, add a pair of parenthesis to mark an if statment's border. Modified: stable/8/usr.sbin/rpcbind/rpcb_stat.c stable/8/usr.sbin/rpcbind/rpcb_svc_com.c stable/8/usr.sbin/rpcbind/rpcbind.c stable/8/usr.sbin/rpcbind/util.c stable/8/usr.sbin/rpcbind/warmstart.c Directory Properties: stable/8/usr.sbin/rpcbind/ (props changed) Modified: stable/8/usr.sbin/rpcbind/rpcb_stat.c ============================================================================== --- stable/8/usr.sbin/rpcbind/rpcb_stat.c Fri Aug 12 21:41:20 2011 (r224808) +++ stable/8/usr.sbin/rpcbind/rpcb_stat.c Sat Aug 13 00:56:42 2011 (r224809) @@ -54,7 +54,7 @@ static rpcb_stat_byvers inf; void -rpcbs_init() +rpcbs_init(void) { } Modified: stable/8/usr.sbin/rpcbind/rpcb_svc_com.c ============================================================================== --- stable/8/usr.sbin/rpcbind/rpcb_svc_com.c Fri Aug 12 21:41:20 2011 (r224808) +++ stable/8/usr.sbin/rpcbind/rpcb_svc_com.c Sat Aug 13 00:56:42 2011 (r224809) @@ -1076,7 +1076,7 @@ netbuffree(struct netbuf *ap) extern bool_t __svc_clean_idle(fd_set *, int, bool_t); void -my_svc_run() +my_svc_run(void) { size_t nfds; struct pollfd pollfds[FD_SETSIZE]; Modified: stable/8/usr.sbin/rpcbind/rpcbind.c ============================================================================== --- stable/8/usr.sbin/rpcbind/rpcbind.c Fri Aug 12 21:41:20 2011 (r224808) +++ stable/8/usr.sbin/rpcbind/rpcbind.c Sat Aug 13 00:56:42 2011 (r224809) @@ -178,12 +178,13 @@ main(int argc, char *argv[]) init_transport(nconf); while ((nconf = getnetconfig(nc_handle))) { - if (nconf->nc_flag & NC_VISIBLE) + if (nconf->nc_flag & NC_VISIBLE) { if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, "inet") == 0) { /* DO NOTHING */ } else init_transport(nconf); + } } endnetconfig(nc_handle); @@ -766,7 +767,7 @@ terminate(int dummy __unused) } void -rpcbind_abort() +rpcbind_abort(void) { #ifdef WARMSTART write_warmstart(); /* Dump yourself */ Modified: stable/8/usr.sbin/rpcbind/util.c ============================================================================== --- stable/8/usr.sbin/rpcbind/util.c Fri Aug 12 21:41:20 2011 (r224808) +++ stable/8/usr.sbin/rpcbind/util.c Sat Aug 13 00:56:42 2011 (r224809) @@ -290,7 +290,7 @@ freeit: } void -network_init() +network_init(void) { #ifdef INET6 struct ifaddrs *ifap, *ifp; Modified: stable/8/usr.sbin/rpcbind/warmstart.c ============================================================================== --- stable/8/usr.sbin/rpcbind/warmstart.c Fri Aug 12 21:41:20 2011 (r224808) +++ stable/8/usr.sbin/rpcbind/warmstart.c Sat Aug 13 00:56:42 2011 (r224809) @@ -142,7 +142,7 @@ error: fprintf(stderr, "rpcbind: will st } void -write_warmstart() +write_warmstart(void) { (void) write_struct(RPCBFILE, (xdrproc_t)xdr_rpcblist_ptr, &list_rbl); #ifdef PORTMAP @@ -152,7 +152,7 @@ write_warmstart() } void -read_warmstart() +read_warmstart(void) { rpcblist_ptr tmp_rpcbl = NULL; #ifdef PORTMAP