diff options
author | millert <> | 1997-04-05 21:13:17 +0000 |
---|---|---|
committer | millert <> | 1997-04-05 21:13:17 +0000 |
commit | 9156235dba65010d9f983e3b8fc0e0b2739c78d4 (patch) | |
tree | 178131fb064d2fb2a659152bdfbfb0c0bb5788cd /src/lib/libc/net/inet_lnaof.c | |
parent | 06967c8a88bc843a5afe2987c242b4f744a4dabf (diff) | |
download | openbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.tar.gz openbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.tar.bz2 openbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.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 'src/lib/libc/net/inet_lnaof.c')
-rw-r--r-- | src/lib/libc/net/inet_lnaof.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/inet_lnaof.c b/src/lib/libc/net/inet_lnaof.c index 5a9bc4a6fe..6aed18699b 100644 --- a/src/lib/libc/net/inet_lnaof.c +++ b/src/lib/libc/net/inet_lnaof.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.2 1996/08/19 08:29:09 tholo Exp $"; | 35 | static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.3 1997/04/05 21:13:11 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/param.h> | 38 | #include <sys/param.h> |
@@ -44,11 +44,11 @@ static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.2 1996/08/19 08:29:09 tholo Ex | |||
44 | * internet address; handles class a/b/c network | 44 | * internet address; handles class a/b/c network |
45 | * number formats. | 45 | * number formats. |
46 | */ | 46 | */ |
47 | u_long | 47 | in_addr_t |
48 | inet_lnaof(in) | 48 | inet_lnaof(in) |
49 | struct in_addr in; | 49 | struct in_addr in; |
50 | { | 50 | { |
51 | register u_long i = ntohl(in.s_addr); | 51 | register in_addr_t i = ntohl(in.s_addr); |
52 | 52 | ||
53 | if (IN_CLASSA(i)) | 53 | if (IN_CLASSA(i)) |
54 | return ((i)&IN_CLASSA_HOST); | 54 | return ((i)&IN_CLASSA_HOST); |