This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix #19443 - build failures with -DDEBUG


On 01/12/2016 12:37 PM, Martin Sebor wrote:
The attached patch makes it possible to build glibc with the macro
defined.  In one instance (time/mktime.c) the macro is being used
in a way that's incompatible with the other uses. In that case I
renamed to avoid this problem.

Sounds good.

-					   ? &((struct sockaddr_in6 *) nsap)->sin6_addr
-					   : &((struct sockaddr_in *) nsap)->sin_addr),
+					   ? (char *)&((struct sockaddr_in6 *) nsap)->sin6_addr
+					   : (char *)&((struct sockaddr_in *) nsap)->sin_addr),

In the cast, please use (void *) instead of (char *), and put a space after the ")". Otherwise, looks good to me; thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]