diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-02-06 13:01:37 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-02-06 13:01:37 +0300 |
commit | 29b3c9cc3e96a83f2b47819e9dfa339fb51af2c4 (patch) | |
tree | e567d4d1578817918c7f56899d93b546bfed85f4 /winsup | |
parent | 6da41754a4be63e4e4c5f15d52ddec733913a6ad (diff) |
* include/cygwin/socket.h (CMSG_FIRSTHDR): Avoid compiler warning.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/socket.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 911263126..dad2d45da 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * include/features.h: Add comment to explain what's going to happen diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h index c977d08be..a3c55ae2e 100644 --- a/winsup/cygwin/include/cygwin/socket.h +++ b/winsup/cygwin/include/cygwin/socket.h @@ -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; \ }) |