diff options
author | Martin Sebor <msebor@redhat.com> | 2016-01-15 11:07:41 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2016-01-15 11:07:41 -0700 |
commit | f2b3078e6a20211233d4971653838e06d048296a (patch) | |
tree | c8f87652683c3788442b44a25e83bf82d22857c8 /resolv/res_send.c | |
parent | ad37480c4b79b801b987f5529d036b4e25cac615 (diff) | |
download | glibc-f2b3078e6a20211233d4971653838e06d048296a.tar.gz |
Fix build failures with -DDEBUG.
[BZ #19443]
* crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
[DEBUG] (_ufc_set_bits): Declare used.
* iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
[DEBUG] (print_all): Declare used.
* resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
operands of the ternary ?: expression to target type.
* stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
calling the undeclared abort.
* time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
Diffstat (limited to 'resolv/res_send.c')
-rw-r--r-- | resolv/res_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c index 3550740ada..a968b95b4a 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -499,8 +499,8 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen, (stdout, ";; Querying server (# %d) address = %s\n", ns + 1, inet_ntop(nsap->sa_family, (nsap->sa_family == AF_INET6 - ? &((struct sockaddr_in6 *) nsap)->sin6_addr - : &((struct sockaddr_in *) nsap)->sin_addr), + ? (void *) &((struct sockaddr_in6 *) nsap)->sin6_addr + : (void *) &((struct sockaddr_in *) nsap)->sin_addr), tmpbuf, sizeof (tmpbuf)))); if (__glibc_unlikely (v_circuit)) { |