diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 16:25:26 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 16:25:26 +0000 |
commit | 49db7b428a4752749fb421bfbe50946cafa2fc3f (patch) | |
tree | 66b2225fa378df22ad147c278b9b94110a22c3c2 /rose/rsdwnlnk.c | |
parent | a7c513d8dc2f4dc2f9a7ae91736f2f2870f2c892 (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 'rose/rsdwnlnk.c')
-rw-r--r-- | rose/rsdwnlnk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rose/rsdwnlnk.c b/rose/rsdwnlnk.c index 45950b3..decc06d 100644 --- a/rose/rsdwnlnk.c +++ b/rose/rsdwnlnk.c @@ -35,9 +35,10 @@ int main(int argc, char **argv) { unsigned char buffer[512], *addr; fd_set read_fd; - int n = 0, s, addrlen, yes = 1; + int n = 0, s, yes = 1; struct full_sockaddr_ax25 axbind, axconnect; struct sockaddr_rose rosesock, rosepeer; + socklen_t addrlen; openlog("rsdwnlnk", LOG_PID, LOG_DAEMON); |