diff options
author | Neil Brown <neilb@suse.de> | 2007-07-29 17:20:10 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-29 17:20:10 +1000 |
commit | 5835b1eec5a1f1e463c0762c510c6643fa2bff62 (patch) | |
tree | 7a8b95c1b9b1273be2272a2dd9302265f9839e4d /support/misc/from_local.c | |
parent | dd087896285da9e160e13ee9f7d75381b67895e3 (diff) | |
download | nfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.tar.gz nfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.tar.xz nfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.zip |
Add -Wstrict-prototypes to compiler args, and fix warnings caused.
Diffstat (limited to 'support/misc/from_local.c')
-rw-r--r-- | support/misc/from_local.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/support/misc/from_local.c b/support/misc/from_local.c index f6f944c..d987207 100644 --- a/support/misc/from_local.c +++ b/support/misc/from_local.c @@ -71,7 +71,7 @@ static struct in_addr *addrs; /* grow_addrs - extend list of local interface addresses */ -static int grow_addrs() +static int grow_addrs(void) { struct in_addr *new_addrs; int new_num; @@ -99,7 +99,7 @@ static int grow_addrs() /* find_local - find all IP addresses for this host */ static int -find_local() +find_local(void) { struct ifconf ifc; struct ifreq ifreq; @@ -157,8 +157,7 @@ find_local() /* from_local - determine whether request comes from the local system */ int -from_local(addr) -struct sockaddr_in *addr; +from_local(struct sockaddr_in *addr) { int i; |