summaryrefslogtreecommitdiffstats
path: root/ax25/ax25d.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/ax25d.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/ax25d.c')
-rw-r--r--ax25/ax25d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 2bbf388..63ec5d2 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -1,5 +1,5 @@
/*
- * $Id: ax25d.c,v 1.6 2009/06/14 08:06:06 ralf Exp $
+ * $Id: ax25d.c,v 1.7 2009/06/14 16:25:26 ralf Exp $
*
* This is my version of axl.c, written for the LBBS code to make it
* compatable with the kernel AX25 driver. It appears to work, with
@@ -274,7 +274,7 @@ int main(int argc, char *argv[])
struct sockaddr_rose rose;
} sockaddr;
struct sigaction act, oact;
- int addrlen;
+ socklen_t addrlen;
int cnt;
char buf[1024];
char *p;
@@ -816,7 +816,7 @@ static int ReadConfig(void)
char buffer[2048];
char *s, *port, *call, *node, *addr = NULL;
unsigned long val;
- int addrlen;
+ socklen_t addrlen;
int af_type = 0; /* Keep GCC happy */
int line = 0;
int hunt = TRUE, error = FALSE;