X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fmisc%2Ffrom_local.c;h=d9872070f73e459a3001fbd136992008b9964b93;hp=56478d7eec5dd8e9cea0b60f00e00c3bf9f08ba2;hb=5835b1eec5a1f1e463c0762c510c6643fa2bff62;hpb=764e46f5c5fe1a6e376f4cd350424f33afc9e838 diff --git a/support/misc/from_local.c b/support/misc/from_local.c index 56478d7..d987207 100644 --- a/support/misc/from_local.c +++ b/support/misc/from_local.c @@ -35,7 +35,7 @@ * Mountain View, California 94043 */ -#ifndef lint +#if 0 static char sccsid[] = "@(#) from_local.c 1.3 96/05/31 15:52:57"; #endif @@ -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;