* 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

@ -85,7 +85,7 @@ struct cmsghdr
#define CMSG_FIRSTHDR(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 *) NULL; \
})