aboutsummaryrefslogtreecommitdiffstats
path: root/net/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/compat.c')
-rw-r--r--net/compat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/compat.c b/net/compat.c
index 242c828810f..1b96281892d 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -733,13 +733,13 @@ static unsigned char nas[21] = {
733}; 733};
734#undef AL 734#undef AL
735 735
736asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned flags) 736asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned int flags)
737{ 737{
738 return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); 738 return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT);
739} 739}
740 740
741asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, 741asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg,
742 unsigned vlen, unsigned int flags) 742 unsigned int vlen, unsigned int flags)
743{ 743{
744 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, 744 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen,
745 flags | MSG_CMSG_COMPAT); 745 flags | MSG_CMSG_COMPAT);
@@ -750,20 +750,20 @@ asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, uns
750 return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); 750 return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT);
751} 751}
752 752
753asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned flags) 753asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned int flags)
754{ 754{
755 return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT); 755 return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT);
756} 756}
757 757
758asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len, 758asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len,
759 unsigned flags, struct sockaddr __user *addr, 759 unsigned int flags, struct sockaddr __user *addr,
760 int __user *addrlen) 760 int __user *addrlen)
761{ 761{
762 return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen); 762 return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen);
763} 763}
764 764
765asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, 765asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,
766 unsigned vlen, unsigned int flags, 766 unsigned int vlen, unsigned int flags,
767 struct compat_timespec __user *timeout) 767 struct compat_timespec __user *timeout)
768{ 768{
769 int datagrams; 769 int datagrams;