* include/cygwin/socket.h (CMSG_FIRSTHDR): Avoid compiler warning.

This commit is contained in:
Corinna Vinschen 2006-02-06 10:01:37 +00:00
parent 6da41754a4
commit 29b3c9cc3e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-02-06 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/socket.h (CMSG_FIRSTHDR): Avoid compiler warning.
2006-02-05 Corinna Vinschen <corinna@vinschen.de> 2006-02-05 Corinna Vinschen <corinna@vinschen.de>
* include/features.h: Add comment to explain what's going to happen * include/features.h: Add comment to explain what's going to happen

View File

@ -85,7 +85,7 @@ struct cmsghdr
#define CMSG_FIRSTHDR(mhdr) \ #define CMSG_FIRSTHDR(mhdr) \
({ \ ({ \
struct msghdr *_m = (struct msghdr *) mhdr; \ struct msghdr *_m = (struct msghdr *) mhdr; \
(_m)->msg_controllen >= sizeof (struct cmsghdr) \ (unsigned) (_m)->msg_controllen >= sizeof (struct cmsghdr) \
? (struct cmsghdr *) (_m)->msg_control \ ? (struct cmsghdr *) (_m)->msg_control \
: (struct cmsghdr *) NULL; \ : (struct cmsghdr *) NULL; \
}) })