diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /net/compat.c | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff) |
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/compat.c')
-rw-r--r-- | net/compat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/compat.c b/net/compat.c index e055708b8ec9..e240441a2317 100644 --- a/net/compat.c +++ b/net/compat.c | |||
@@ -741,13 +741,13 @@ static unsigned char nas[21] = { | |||
741 | }; | 741 | }; |
742 | #undef AL | 742 | #undef AL |
743 | 743 | ||
744 | asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned flags) | 744 | asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned int flags) |
745 | { | 745 | { |
746 | return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); | 746 | return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); |
747 | } | 747 | } |
748 | 748 | ||
749 | asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, | 749 | asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, |
750 | unsigned vlen, unsigned int flags) | 750 | unsigned int vlen, unsigned int flags) |
751 | { | 751 | { |
752 | return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, | 752 | return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, |
753 | flags | MSG_CMSG_COMPAT); | 753 | flags | MSG_CMSG_COMPAT); |
@@ -758,20 +758,20 @@ asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, uns | |||
758 | return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); | 758 | return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); |
759 | } | 759 | } |
760 | 760 | ||
761 | asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned flags) | 761 | asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned int flags) |
762 | { | 762 | { |
763 | return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT); | 763 | return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT); |
764 | } | 764 | } |
765 | 765 | ||
766 | asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len, | 766 | asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len, |
767 | unsigned flags, struct sockaddr __user *addr, | 767 | unsigned int flags, struct sockaddr __user *addr, |
768 | int __user *addrlen) | 768 | int __user *addrlen) |
769 | { | 769 | { |
770 | return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen); | 770 | return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen); |
771 | } | 771 | } |
772 | 772 | ||
773 | asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, | 773 | asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, |
774 | unsigned vlen, unsigned int flags, | 774 | unsigned int vlen, unsigned int flags, |
775 | struct compat_timespec __user *timeout) | 775 | struct compat_timespec __user *timeout) |
776 | { | 776 | { |
777 | int datagrams; | 777 | int datagrams; |