From ccacf84f7602946c76944aae6ce1d5e2aa2b4814 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 14 Jun 2009 16:25:33 +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. --- ax25ipd/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25ipd/io.c') diff --git a/ax25ipd/io.c b/ax25ipd/io.c index 0c0f2d5..356ebdc 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -65,7 +65,7 @@ int icmpsock = -1; struct sockaddr_in udpbind; struct sockaddr_in to; struct sockaddr_in from; -int fromlen; +socklen_t fromlen; time_t last_bc_time; -- cgit v1.2.3