diff options
author | delphij <delphij@FreeBSD.org> | 2011-07-14 07:28:49 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-07-14 07:28:49 +0000 |
commit | 08977644564422926996940a88e15ba0f088002b (patch) | |
tree | a0732efc2864f257f424325fcf737bef98ce8faa /usr.sbin | |
parent | 709d0ff0d04d4843076bccfd3420d51f41663dfd (diff) | |
download | FreeBSD-src-08977644564422926996940a88e15ba0f088002b.zip FreeBSD-src-08977644564422926996940a88e15ba0f088002b.tar.gz |
Use prototype. While I'm there, add a pair of parenthesis to mark an if
statment's border.
MFC after: 1 month
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpcbind/rpcb_stat.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpcbind/rpcb_svc_com.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpcbind/rpcbind.c | 5 | ||||
-rw-r--r-- | usr.sbin/rpcbind/util.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpcbind/warmstart.c | 4 |
5 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/rpcbind/rpcb_stat.c b/usr.sbin/rpcbind/rpcb_stat.c index b10ed50..3061754 100644 --- a/usr.sbin/rpcbind/rpcb_stat.c +++ b/usr.sbin/rpcbind/rpcb_stat.c @@ -54,7 +54,7 @@ static rpcb_stat_byvers inf; void -rpcbs_init() +rpcbs_init(void) { } diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c index 79cb937..f90dc59 100644 --- a/usr.sbin/rpcbind/rpcb_svc_com.c +++ b/usr.sbin/rpcbind/rpcb_svc_com.c @@ -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]; diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c index 5a76a68..dff0b08 100644 --- a/usr.sbin/rpcbind/rpcbind.c +++ b/usr.sbin/rpcbind/rpcbind.c @@ -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 */ diff --git a/usr.sbin/rpcbind/util.c b/usr.sbin/rpcbind/util.c index 6c41253..16e6f70 100644 --- a/usr.sbin/rpcbind/util.c +++ b/usr.sbin/rpcbind/util.c @@ -283,7 +283,7 @@ freeit: } void -network_init() +network_init(void) { #ifdef INET6 struct ifaddrs *ifap, *ifp; diff --git a/usr.sbin/rpcbind/warmstart.c b/usr.sbin/rpcbind/warmstart.c index 410f270..fc0956f 100644 --- a/usr.sbin/rpcbind/warmstart.c +++ b/usr.sbin/rpcbind/warmstart.c @@ -142,7 +142,7 @@ error: fprintf(stderr, "rpcbind: will start from scratch\n"); } 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 |