diff options
author | Maciej Żenczykowski <maze@google.com> | 2012-03-11 08:51:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-11 22:11:22 -0400 |
commit | 43db362d3adda9e0a915ddb9a8d1a41186e19179 (patch) | |
tree | 83f00b1c09a4f54c43f94da7afb3064923415394 /net/compat.c | |
parent | 8b2aaedee4eaa94e816144ed54b9707b96be29f8 (diff) |
net: get rid of some pointless casts to sockaddr
The following 4 functions:
move_addr_to_kernel
move_addr_to_user
verify_iovec
verify_compat_iovec
are always effectively called with a sockaddr_storage.
Make this explicit by changing their signature.
This removes a large number of casts from sockaddr_storage to sockaddr.
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/compat.c')
-rw-r--r-- | net/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/compat.c b/net/compat.c index 6def90e0a112..64b4515a64e6 100644 --- a/net/compat.c +++ b/net/compat.c | |||
@@ -79,7 +79,7 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg) | |||
79 | 79 | ||
80 | /* I've named the args so it is easy to tell whose space the pointers are in. */ | 80 | /* I've named the args so it is easy to tell whose space the pointers are in. */ |
81 | int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov, | 81 | int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov, |
82 | struct sockaddr *kern_address, int mode) | 82 | struct sockaddr_storage *kern_address, int mode) |
83 | { | 83 | { |
84 | int tot_len; | 84 | int tot_len; |
85 | 85 | ||