diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 16:25:33 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 16:25:33 +0000 |
commit | ccacf84f7602946c76944aae6ce1d5e2aa2b4814 (patch) | |
tree | e95ee463e16d02ced5c39a62a111ce70ca36f8b6 /listen | |
parent | cd98bf42c5ab3cb061a32068d866616c71c40bf9 (diff) |
Fix type of length argument to sockset syscalls.
Various socket syscalls receive a length argument that should be a
socklen_t rsp. a ptr to a socklen_t but instead int rsp. ptr to int were
being passed. While in theory this was a bug it's harmless as dangerously
large values would not be used but the issue manifested itself in a
significant number of compilation warnings.
Diffstat (limited to 'listen')
-rw-r--r-- | listen/listen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/listen/listen.c b/listen/listen.c index 5b70fb9..f07a1f6 100644 --- a/listen/listen.c +++ b/listen/listen.c @@ -65,7 +65,7 @@ int main(int argc, char **argv) int s; char *port = NULL, *dev = NULL; struct sockaddr sa; - int asize = sizeof(sa); + socklen_t asize = sizeof(sa); struct ifreq ifr; int proto = ETH_P_AX25; |