summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ns_ntoa.c
diff options
context:
space:
mode:
authormillert <>1997-04-05 21:13:17 +0000
committermillert <>1997-04-05 21:13:17 +0000
commit9156235dba65010d9f983e3b8fc0e0b2739c78d4 (patch)
tree178131fb064d2fb2a659152bdfbfb0c0bb5788cd /src/lib/libc/net/ns_ntoa.c
parent06967c8a88bc843a5afe2987c242b4f744a4dabf (diff)
downloadopenbsd-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/ns_ntoa.c')
-rw-r--r--src/lib/libc/net/ns_ntoa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ns_ntoa.c b/src/lib/libc/net/ns_ntoa.c
index f7932ed3b6..d65d6d84d8 100644
--- a/src/lib/libc/net/ns_ntoa.c
+++ b/src/lib/libc/net/ns_ntoa.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.3 1996/08/19 08:29:31 tholo Exp $"; 35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.4 1997/04/05 21:13:15 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>
@@ -47,7 +47,7 @@ ns_ntoa(addr)
47{ 47{
48 static char obuf[40]; 48 static char obuf[40];
49 union { union ns_net net_e; u_long long_e; } net; 49 union { union ns_net net_e; u_long long_e; } net;
50 u_short port = htons(addr.x_port); 50 in_port_t port = htons(addr.x_port);
51 register char *cp; 51 register char *cp;
52 char *cp2; 52 char *cp2;
53 register u_char *up = addr.x_host.c_host; 53 register u_char *up = addr.x_host.c_host;