diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-09 00:25:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-09 00:25:37 +0000 |
commit | 020a9a23e2eff7479ccdc6a9fc11c7572925baae (patch) | |
tree | 6d37d46fe95333cb3d26eed79f7a594f367ee50a /resolv/gethnamaddr.c | |
parent | [BZ #41] (diff) | |
download | glibc-020a9a23e2eff7479ccdc6a9fc11c7572925baae.tar.gz glibc-020a9a23e2eff7479ccdc6a9fc11c7572925baae.tar.bz2 glibc-020a9a23e2eff7479ccdc6a9fc11c7572925baae.zip |
Update.
* resolv/res_send.c: Compiling with DEBUG defined works again.
* resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
callers.
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r-- | resolv/gethnamaddr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index a02d0fb617..42d81f30e3 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -143,7 +143,7 @@ extern int h_errno; #ifdef DEBUG static void -dprintf(msg, num) +Dprintf(msg, num) char *msg; int num; { @@ -155,7 +155,7 @@ dprintf(msg, num) } } #else -# define dprintf(msg, num) /*nada*/ +# define Dprintf(msg, num) /*nada*/ #endif #define BOUNDED_INCR(x) \ @@ -429,13 +429,13 @@ getanswer(answer, anslen, qname, qtype) bp += sizeof(align) - ((u_long)bp % sizeof(align)); if (bp + n >= &hostbuf[sizeof hostbuf]) { - dprintf("size (%d) too big\n", n); + Dprintf("size (%d) too big\n", n); had_error++; continue; } if (hap >= &h_addr_ptrs[MAXADDRS-1]) { if (!toobig++) { - dprintf("Too many addresses (%d)\n", + Dprintf("Too many addresses (%d)\n", MAXADDRS); } cp += n; @@ -627,7 +627,7 @@ gethostbyname2(name, af) &buf.ptr)) < 0) { if (buf.buf != origbuf) free (buf.buf); - dprintf("res_nsearch failed (%d)\n", n); + Dprintf("res_nsearch failed (%d)\n", n); if (errno == ECONNREFUSED) return (_gethtbyname2(name, af)); return (NULL); @@ -729,7 +729,7 @@ gethostbyaddr(addr, len, af) if (n < 0) { if (buf.buf != orig_buf) free (buf.buf); - dprintf("res_nquery failed (%d)\n", n); + Dprintf("res_nquery failed (%d)\n", n); if (errno == ECONNREFUSED) return (_gethtbyaddr(addr, len, af)); return (NULL); |