diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-09 15:43:30 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-09 15:43:30 +0000 |
commit | 4f16d2e03a6cc2415a0eefcf50410d1943319543 (patch) | |
tree | 8d3132396738369409812b09668e5f39b3459096 /libc/inet/resolv.c | |
parent | 06f8a796e2d4d88cfd89b21a2b7b195c3612ba81 (diff) |
Implement hidden poll, switch user to hidden *printf/*scanf/poll
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r-- | libc/inet/resolv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index d93adede8..be0ab457b 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -148,6 +148,7 @@ #define select __select #define recv __recv #define send __send +#define snprintf __snprintf #define __FORCE_GLIBC #include <features.h> @@ -1397,7 +1398,7 @@ int res_querydomain(name, domain, class, type, answer, anslen) #ifdef DEBUG if (_res.options & RES_DEBUG) - printf(";; res_querydomain(%s, %s, %d, %d)\n", + __printf(";; res_querydomain(%s, %s, %d, %d)\n", name, domain?domain:"<Nil>", class, type); #endif if (domain == NULL) { @@ -2335,7 +2336,7 @@ int attribute_hidden __gethostbyaddr_r (const void *addr, socklen_t len, int typ addr_list[0] = in; - sprintf(buf, "%u.%u.%u.%u.in-addr.arpa", + __sprintf(buf, "%u.%u.%u.%u.in-addr.arpa", tmp_addr[3], tmp_addr[2], tmp_addr[1], tmp_addr[0]); #ifdef __UCLIBC_HAS_IPV6__ } else { @@ -2345,7 +2346,7 @@ int attribute_hidden __gethostbyaddr_r (const void *addr, socklen_t len, int typ qp = buf; for (i = len - 1; i >= 0; i--) { - qp += sprintf(qp, "%x.%x.", in6->s6_addr[i] & 0xf, + qp += __sprintf(qp, "%x.%x.", in6->s6_addr[i] & 0xf, (in6->s6_addr[i] >> 4) & 0xf); } __strcpy(qp, "ip6.int"); |