diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-07-19 22:35:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-19 22:35:47 -0700 |
commit | 230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a (patch) | |
tree | 2ea0a3bde5deab4b90ca9ed58e23b020494f25a0 /net/core/iovec.c | |
parent | 53b7997fd5c62408d10b9aafb38974ce90fd2356 (diff) | |
download | lwn-230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a.tar.gz lwn-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/core/iovec.c')
-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 755c37fdaee7..4c9c0121c9da 100644 --- a/net/core/iovec.c +++ b/net/core/iovec.c @@ -36,7 +36,7 @@ * in any case. */ -int verify_iovec(struct msghdr *m, struct iovec *iov, char *address, int mode) +int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode) { int size, err, ct; |