Date: Thu, 14 Jul 2011 07:28:50 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r224001 - head/usr.sbin/rpcbind Message-ID: <201107140728.p6E7Soup018708@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu Jul 14 07:28:49 2011 New Revision: 224001 URL: http://svn.freebsd.org/changeset/base/224001 Log: Use prototype. While I'm there, add a pair of parenthesis to mark an if statment's border. MFC after: 1 month Modified: head/usr.sbin/rpcbind/rpcb_stat.c head/usr.sbin/rpcbind/rpcb_svc_com.c head/usr.sbin/rpcbind/rpcbind.c head/usr.sbin/rpcbind/util.c head/usr.sbin/rpcbind/warmstart.c Modified: head/usr.sbin/rpcbind/rpcb_stat.c ============================================================================== --- head/usr.sbin/rpcbind/rpcb_stat.c Thu Jul 14 07:19:29 2011 (r224000) +++ head/usr.sbin/rpcbind/rpcb_stat.c Thu Jul 14 07:28:49 2011 (r224001) @@ -54,7 +54,7 @@ static rpcb_stat_byvers inf; void -rpcbs_init() +rpcbs_init(void) { } Modified: head/usr.sbin/rpcbind/rpcb_svc_com.c ============================================================================== --- head/usr.sbin/rpcbind/rpcb_svc_com.c Thu Jul 14 07:19:29 2011 (r224000) +++ head/usr.sbin/rpcbind/rpcb_svc_com.c Thu Jul 14 07:28:49 2011 (r224001) @@ -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: head/usr.sbin/rpcbind/rpcbind.c ============================================================================== --- head/usr.sbin/rpcbind/rpcbind.c Thu Jul 14 07:19:29 2011 (r224000) +++ head/usr.sbin/rpcbind/rpcbind.c Thu Jul 14 07:28:49 2011 (r224001) @@ -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: head/usr.sbin/rpcbind/util.c ============================================================================== --- head/usr.sbin/rpcbind/util.c Thu Jul 14 07:19:29 2011 (r224000) +++ head/usr.sbin/rpcbind/util.c Thu Jul 14 07:28:49 2011 (r224001) @@ -283,7 +283,7 @@ freeit: } void -network_init() +network_init(void) { #ifdef INET6 struct ifaddrs *ifap, *ifp; Modified: head/usr.sbin/rpcbind/warmstart.c ============================================================================== --- head/usr.sbin/rpcbind/warmstart.c Thu Jul 14 07:19:29 2011 (r224000) +++ head/usr.sbin/rpcbind/warmstart.c Thu Jul 14 07:28:49 2011 (r224001) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107140728.p6E7Soup018708>