diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-25 13:24:13 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-25 13:24:13 +0000 |
commit | 367caa05f7f8d7687477fb03be7607b79e055127 (patch) | |
tree | 61380116a34433b437ea9412277e0cf044dce992 /lib/libc/net/inet_netof.c | |
parent | ad418525c7ffd9248e6cc7a6aa70d5fbfa124ff5 (diff) |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/inet_netof.c')
-rw-r--r-- | lib/libc/net/inet_netof.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/net/inet_netof.c b/lib/libc/net/inet_netof.c index 58be2d05cd9..83f346c5f55 100644 --- a/lib/libc/net/inet_netof.c +++ b/lib/libc/net/inet_netof.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: inet_netof.c,v 1.4 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: inet_netof.c,v 1.5 2005/03/25 13:24:12 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -40,10 +40,9 @@ static char rcsid[] = "$OpenBSD: inet_netof.c,v 1.4 2003/06/02 20:18:35 millert * address; handles class a/b/c network #'s. */ in_addr_t -inet_netof(in) - struct in_addr in; +inet_netof(struct in_addr in) { - register in_addr_t i = ntohl(in.s_addr); + in_addr_t i = ntohl(in.s_addr); if (IN_CLASSA(i)) return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT); |