fix socket.h struct msghdr member types on powerpc
authorRich Felker <dalias@aerifal.cx>
Tue, 11 Mar 2014 21:21:38 +0000 (17:21 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 11 Mar 2014 21:21:38 +0000 (17:21 -0400)
these were incorrectly copied from the kernel, whose ABI matches the
POSIX requirements but with the wrong underlying types and wrong
signedness.

arch/powerpc/bits/socket.h

index ff9246a..4ed04d3 100644 (file)
@@ -1,12 +1,12 @@
 struct msghdr
 {
        void *msg_name;
-       int msg_namelen;
+       socklen_t msg_namelen;
        struct iovec *msg_iov;
-       unsigned long msg_iovlen;
+       int msg_iovlen;
        void *msg_control;
-       unsigned long  msg_controllen;
-       unsigned msg_flags;
+       socklen_t msg_controllen;
+       int msg_flags;
 };
 
 struct cmsghdr