summaryrefslogtreecommitdiffstats
path: root/hdlcutil
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
commit49db7b428a4752749fb421bfbe50946cafa2fc3f (patch)
tree66b2225fa378df22ad147c278b9b94110a22c3c2 /hdlcutil
parenta7c513d8dc2f4dc2f9a7ae91736f2f2870f2c892 (diff)
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.
Diffstat (limited to 'hdlcutil')
-rw-r--r--hdlcutil/hdrvcomm.c2
1 files changed, 1 insertions, 1 deletions
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) {