summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/inet_netof.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-03-25 13:24:11 +0000
committerotto <otto@openbsd.org>2005-03-25 13:24:11 +0000
commitdb5b349cf7aa19c2b6169fbb65597f2e741714ab (patch)
tree3225f0ae035a80a4448da2c70fd7f41f085c275b /lib/libc/net/inet_netof.c
parentwhitespace (diff)
downloadwireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz
wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/inet_netof.c')
-rw-r--r--lib/libc/net/inet_netof.c7
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);