diff options
author | Maciej Żenczykowski <maze@google.com> | 2012-03-11 12:51:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-11 19:11:22 -0700 |
commit | 43db362d3adda9e0a915ddb9a8d1a41186e19179 (patch) | |
tree | 83f00b1c09a4f54c43f94da7afb3064923415394 /net/core | |
parent | 8b2aaedee4eaa94e816144ed54b9707b96be29f8 (diff) | |
download | op-kernel-dev-43db362d3adda9e0a915ddb9a8d1a41186e19179.zip op-kernel-dev-43db362d3adda9e0a915ddb9a8d1a41186e19179.tar.gz |
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/core')
-rw-r--r-- | net/core/iovec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/iovec.c b/net/core/iovec.c index c40f27e..7e7aeb0 100644 --- a/net/core/iovec.c +++ b/net/core/iovec.c @@ -35,7 +35,7 @@ * in any case. */ -int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode) +int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr_storage *address, int mode) { int size, ct, err; |