diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-22 15:57:26 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-22 15:57:26 +0000 |
commit | aa2db6bfb4d7dd63bb4241cd9ec63ff8ee0f4421 (patch) | |
tree | cd1137a5808dcd5c0f46dd2bbb9626e0467de079 /lib/libc/resolv/res_init.c | |
parent | 5200f4be667a336fb2b90bdad8b6dab5d0979aa6 (diff) | |
download | FreeBSD-src-aa2db6bfb4d7dd63bb4241cd9ec63ff8ee0f4421.zip FreeBSD-src-aa2db6bfb4d7dd63bb4241cd9ec63ff8ee0f4421.tar.gz |
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/resolv/res_init.c')
-rw-r--r-- | lib/libc/resolv/res_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index b5444ef..4dbd6d1 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -718,8 +718,7 @@ res_setoptions(res_state statp, const char *options, const char *source) #ifdef RESOLVSORT /* XXX - should really support CIDR which means explicit masks always. */ static u_int32_t -net_mask(in) /*!< XXX - should really use system's version of this */ - struct in_addr in; +net_mask(struct in_addr in) /*!< XXX - should really use system's version of this */ { u_int32_t i = ntohl(in.s_addr); |