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. --- hdlcutil/hdrvcomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdlcutil/hdrvcomm.c') diff --git a/hdlcutil/hdrvcomm.c b/hdlcutil/hdrvcomm.c index 776c66d..7392d4e 100644 --- a/hdlcutil/hdrvcomm.c +++ b/hdlcutil/hdrvcomm.c @@ -102,7 +102,7 @@ int hdrvc_recvpacket(char *pkt, int maxlen) { struct ifreq ifr_new; struct sockaddr_ll from; - int from_len = sizeof(from); + socklen_t from_len = sizeof(from); #ifdef HDRVC_KERNEL if (kernel_mode) { -- cgit v1.2.3