summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/ntop.c2
-rw-r--r--libc/inet/resolv.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c
index 0181a415c..30dde6f9c 100644
--- a/libc/inet/ntop.c
+++ b/libc/inet/ntop.c
@@ -105,7 +105,7 @@ inet_ntop6(const u_char *src, char *dst, size_t size)
* to use pointer overlays. All the world's not a VAX.
*/
char tmp[sizeof ("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")], *tp;
- struct { int base, len; } best, cur;
+ struct { int base, len; } best = { 0, 0 }, cur = { 0, 0 };
u_int words[8];
int i;
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 31e63810b..fffe4281c 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2178,7 +2178,6 @@ int gethostbyname_r(const char *name,
return i;
}
libc_hidden_def(gethostbyname_r)
-link_warning(gethostbyname_r, "gethostbyname_r is obsolescent, use getnameinfo() instead.");
#endif /* L_gethostbyname_r */
@@ -2496,7 +2495,6 @@ int gethostbyaddr_r(const void *addr, socklen_t addrlen,
#undef in6
}
libc_hidden_def(gethostbyaddr_r)
-link_warning(gethostbyaddr_r, "gethostbyaddr_r is obsolescent, use getaddrinfo() instead.");
#endif /* L_gethostbyaddr_r */
@@ -2616,7 +2614,6 @@ struct hostent *gethostbyname(const char *name)
#endif
}
libc_hidden_def(gethostbyname)
-link_warning(gethostbyname, "gethostbyname is obsolescent, use getnameinfo() instead.");
#endif /* L_gethostbyname */
@@ -2638,7 +2635,6 @@ struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type)
return hp;
}
libc_hidden_def(gethostbyaddr)
-link_warning(gethostbyaddr, "gethostbyaddr is obsolescent, use getaddrinfo() instead.");
#endif /* L_gethostbyaddr */