diff options
author | 1997-04-05 21:13:05 +0000 | |
---|---|---|
committer | 1997-04-05 21:13:05 +0000 | |
commit | 32210aa31d9c5b0f06af59679708a6e95c5107e6 (patch) | |
tree | 7c58dacec78777ce60cd83473d7aae94e41e002f /lib/libc/net/inet_network.c | |
parent | Use in_addr_t not u_long. (diff) | |
download | wireguard-openbsd-32210aa31d9c5b0f06af59679708a6e95c5107e6.tar.xz wireguard-openbsd-32210aa31d9c5b0f06af59679708a6e95c5107e6.zip |
Use in_addr_t not u_long and use in_port_t in some cases instead
of u_short or u_int16_t.
Diffstat (limited to 'lib/libc/net/inet_network.c')
-rw-r--r-- | lib/libc/net/inet_network.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c index 1ffee63309a..34682bbec16 100644 --- a/lib/libc/net/inet_network.c +++ b/lib/libc/net/inet_network.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: inet_network.c,v 1.4 1996/08/19 08:29:14 tholo Exp $"; +static char rcsid[] = "$OpenBSD: inet_network.c,v 1.5 1997/04/05 21:13:14 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -45,13 +45,13 @@ static char rcsid[] = "$OpenBSD: inet_network.c,v 1.4 1996/08/19 08:29:14 tholo * The library routines call this routine to interpret * network numbers. */ -u_long +in_addr_t inet_network(cp) register const char *cp; { - register u_long val, base, n; + register in_addr_t val, base, n; register char c; - u_long parts[4], *pp = parts; + in_addr_t parts[4], *pp = parts; register int i; again: |