summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/getnameinfo.c4
-rw-r--r--src/lib/libc/net/inet_net_ntop.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c
index 62760e178d..8681137fd7 100644
--- a/src/lib/libc/net/getnameinfo.c
+++ b/src/lib/libc/net/getnameinfo.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getnameinfo.c,v 1.28 2004/06/07 21:11:23 marc Exp $ */ 1/* $OpenBSD: getnameinfo.c,v 1.29 2004/09/15 19:01:28 deraadt Exp $ */
2/* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ 2/* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */
3 3
4/* 4/*
@@ -110,7 +110,6 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
110 int family, i; 110 int family, i;
111 const char *addr; 111 const char *addr;
112 u_int32_t v4a; 112 u_int32_t v4a;
113 int h_error;
114 char numserv[512]; 113 char numserv[512];
115 char numaddr[512]; 114 char numaddr[512];
116 115
@@ -240,7 +239,6 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
240 _THREAD_PRIVATE_MUTEX_LOCK(serv_mutex); 239 _THREAD_PRIVATE_MUTEX_LOCK(serv_mutex);
241 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af); 240 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
242 _THREAD_PRIVATE_MUTEX_UNLOCK(serv_mutex); 241 _THREAD_PRIVATE_MUTEX_UNLOCK(serv_mutex);
243 h_error = h_errno;
244 242
245 if (hp) { 243 if (hp) {
246#if 0 244#if 0
diff --git a/src/lib/libc/net/inet_net_ntop.c b/src/lib/libc/net/inet_net_ntop.c
index 18eea6bb6d..2b7de0cec3 100644
--- a/src/lib/libc/net/inet_net_ntop.c
+++ b/src/lib/libc/net/inet_net_ntop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_net_ntop.c,v 1.3 2002/08/19 03:01:54 itojun Exp $ */ 1/* $OpenBSD: inet_net_ntop.c,v 1.4 2004/09/15 19:01:28 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996 by Internet Software Consortium. 4 * Copyright (c) 1996 by Internet Software Consortium.
@@ -21,7 +21,7 @@
21#if 0 21#if 0
22static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; 22static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $";
23#else 23#else
24static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.3 2002/08/19 03:01:54 itojun Exp $"; 24static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.4 2004/09/15 19:01:28 deraadt Exp $";
25#endif 25#endif
26#endif 26#endif
27 27
@@ -85,7 +85,6 @@ inet_net_ntop_ipv4(src, bits, dst, size)
85 size_t size; 85 size_t size;
86{ 86{
87 char *odst = dst; 87 char *odst = dst;
88 char *t;
89 u_int m; 88 u_int m;
90 int b; 89 int b;
91 char *ep; 90 char *ep;