diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 21:13:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 21:13:18 +0000 |
commit | bb93359ccedae9a32facea758712506a0fe8f3d4 (patch) | |
tree | e8c47183ac65cd8ac28764b16b44538c24193d92 /lib/libc/net/ns_ntoa.c | |
parent | a75078b4a8609418bb7e9376e492d6ef6c57f181 (diff) |
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/ns_ntoa.c')
-rw-r--r-- | lib/libc/net/ns_ntoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/ns_ntoa.c b/lib/libc/net/ns_ntoa.c index f7932ed3b60..d65d6d84d81 100644 --- a/lib/libc/net/ns_ntoa.c +++ b/lib/libc/net/ns_ntoa.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.3 1996/08/19 08:29:31 tholo Exp $"; +static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.4 1997/04/05 21:13:15 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -47,7 +47,7 @@ ns_ntoa(addr) { static char obuf[40]; union { union ns_net net_e; u_long long_e; } net; - u_short port = htons(addr.x_port); + in_port_t port = htons(addr.x_port); register char *cp; char *cp2; register u_char *up = addr.x_host.c_host; |