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. --- ax25rtd/listener.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ax25rtd/listener.c') diff --git a/ax25rtd/listener.c b/ax25rtd/listener.c index 44a0601..051d8c9 100644 --- a/ax25rtd/listener.c +++ b/ax25rtd/listener.c @@ -1,4 +1,4 @@ -/* $Id: listener.c,v 1.5 2006/10/05 11:50:39 dl9sau Exp $ +/* $Id: listener.c,v 1.6 2009/06/14 16:25:33 ralf Exp $ * * Copyright (c) 1996 Jörg Reuter (jreuter@poboxes.com) * @@ -394,10 +394,11 @@ void ax25_receive(int sock) struct sockaddr sa; ax25_address srccall, destcall, digipeater[AX25_MAX_DIGIS]; char extseq = 0; - int size, asize, action, ipmode, ctl, pid, ndigi, kdigi, mine; + int size, action, ipmode, ctl, pid, ndigi, kdigi, mine; time_t stamp; config *config; ax25_rt_entry *ax25rt; + socklen_t asize; asize = sizeof(sa); if ((size = recvfrom(sock, buf, sizeof(buf), 0, &sa, &asize)) < 0) { -- cgit v1.2.3