summaryrefslogtreecommitdiffstats
path: root/net/compat.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-07-20 07:35:47 +0200
committerDavid S. Miller <davem@davemloft.net>2008-07-20 07:35:47 +0200
commit230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a (patch)
tree2ea0a3bde5deab4b90ca9ed58e23b020494f25a0 /net/compat.c
parentipv6 netns: Make several "global" sysctl variables namespace aware. (diff)
downloadlinux-230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a.tar.xz
linux-230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a.zip
net: Use standard structures for generic socket address structures.
Use sockaddr_storage{} for generic socket address storage and ensures proper alignment. Use sockaddr{} for pointers to omit several casts. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/compat.c')
-rw-r--r--net/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/compat.c b/net/compat.c
index c823f6f290cb..6e1b03b51933 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -75,7 +75,7 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg)
/* I've named the args so it is easy to tell whose space the pointers are in. */
int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov,
- char *kern_address, int mode)
+ struct sockaddr *kern_address, int mode)
{
int tot_len;