diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2001-04-21 14:53:06 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2001-04-21 14:53:06 +0000 |
| commit | d05b27ff8b7ac138bc1ca17d31ffd7ce392bccb9 (patch) | |
| tree | bfcec701b3de9e7a456a8f589eeda33ff85d09fc /lib/libc/net/inet_network.c | |
| parent | bb8c19e77b4d6036a0c59586f71e441473c56b07 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/inet_network.c')
| -rw-r--r-- | lib/libc/net/inet_network.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c index e44257ac2086..7cc30a57f8c3 100644 --- a/lib/libc/net/inet_network.c +++ b/lib/libc/net/inet_network.c @@ -47,13 +47,14 @@ static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93"; * 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, i; + 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: val = 0; base = 10; |
