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/mheardd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25/mheardd.c') 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; -- cgit v1.2.3