This is the mail archive of the libc-hacker@cygnus.com 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]

Re: struct sockaddr_storage


>This is wrong.  The preprocessor must use the widest type for evaluation,
>which is intmax_t in C9x, so that ~0U is _always_ bigger than 0xffffffff
>(independent of the suffix, which is ignored by the preprocessor, and
>intmax_t must have at least 64 bits).  You must use ULONG_MAX instead.

OK, thanks.  In that case <netinet/in.h> should probably be fixed too - it's 
important that the two remain in step.  I'll make a patch shortly.

p.




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