diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-22 15:40:07 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-22 15:40:07 +0000 |
commit | 5200f4be667a336fb2b90bdad8b6dab5d0979aa6 (patch) | |
tree | 2e8901f302dad25f0bd647f68a1d6c9423986c96 /lib/libc/rpc/pmap_getport.c | |
parent | 3fa0d9942f4943ada80c76279fcfd99262c878c6 (diff) | |
download | FreeBSD-src-5200f4be667a336fb2b90bdad8b6dab5d0979aa6.zip FreeBSD-src-5200f4be667a336fb2b90bdad8b6dab5d0979aa6.tar.gz |
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/rpc/pmap_getport.c')
-rw-r--r-- | lib/libc/rpc/pmap_getport.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/rpc/pmap_getport.c b/lib/libc/rpc/pmap_getport.c index e06f958..c1e0c7a 100644 --- a/lib/libc/rpc/pmap_getport.c +++ b/lib/libc/rpc/pmap_getport.c @@ -66,11 +66,8 @@ static const struct timeval tottimeout = { 60, 0 }; * Returns 0 if no map exists. */ u_short -pmap_getport(address, program, version, protocol) - struct sockaddr_in *address; - u_long program; - u_long version; - u_int protocol; +pmap_getport(struct sockaddr_in *address, u_long program, u_long version, + u_int protocol) { u_short port = 0; int sock = -1; |