summaryrefslogtreecommitdiffstats
path: root/ax25/mheardd.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
commit49db7b428a4752749fb421bfbe50946cafa2fc3f (patch)
tree66b2225fa378df22ad147c278b9b94110a22c3c2 /ax25/mheardd.c
parenta7c513d8dc2f4dc2f9a7ae91736f2f2870f2c892 (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 'ax25/mheardd.c')
-rw-r--r--ax25/mheardd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ax25/mheardd.c b/ax25/mheardd.c
index 3de25ea..31f9f64 100644
--- a/ax25/mheardd.c
+++ b/ax25/mheardd.c
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
int size, s;
char *port = NULL;
struct sockaddr sa;
- int asize;
+ socklen_t asize;
long position;
int ctlen, type, end, extseq, flush = FALSE;
FILE *fp;