diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 20:50:56 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 20:50:56 +0000 |
commit | a9a0375d7ebdf75260b171e5593ef852e91f72f1 (patch) | |
tree | 7e496eb2b7160a510b285c9a7c319defec765770 /lib/libc/inet/inet_netof.c | |
parent | aa990038b120588303adfe133366fe481675c5ab (diff) | |
download | FreeBSD-src-a9a0375d7ebdf75260b171e5593ef852e91f72f1.zip FreeBSD-src-a9a0375d7ebdf75260b171e5593ef852e91f72f1.tar.gz |
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/inet/inet_netof.c')
-rw-r--r-- | lib/libc/inet/inet_netof.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/inet/inet_netof.c b/lib/libc/inet/inet_netof.c index 8931c30..2335772 100644 --- a/lib/libc/inet/inet_netof.c +++ b/lib/libc/inet/inet_netof.c @@ -46,8 +46,7 @@ __FBSDID("$FreeBSD$"); * address; handles class a/b/c network #'s. */ in_addr_t -inet_netof(in) - struct in_addr in; +inet_netof(struct in_addr in) { in_addr_t i = ntohl(in.s_addr); |