From 49db7b428a4752749fb421bfbe50946cafa2fc3f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 14 Jun 2009 16:25:26 +0000 Subject: 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. --- ax25/ax25d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ax25/ax25d.c') 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; -- cgit v1.2.3