summaryrefslogtreecommitdiff
path: root/networking/libiproute/iplink.c
diff options
context:
space:
mode:
authorEric Andersen2006-01-30 18:00:02 +0000
committerEric Andersen2006-01-30 18:00:02 +0000
commitd78aea8b8eb1da818c04929a2bddbed01a796c58 (patch)
tree601a057c6160d3474cd4c0d1f3ae6d6e5b5cab17 /networking/libiproute/iplink.c
parent4bf31272ff074e5383b61f43aa270b50908991f8 (diff)
downloadbusybox-d78aea8b8eb1da818c04929a2bddbed01a796c58.zip
busybox-d78aea8b8eb1da818c04929a2bddbed01a796c58.tar.gz
sort out yet more type issues
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r--networking/libiproute/iplink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 91c8582..12677d5 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -166,7 +166,7 @@ static int get_address(char *dev, int *htype)
{
struct ifreq ifr;
struct sockaddr_ll me;
- int alen;
+ socklen_t alen;
int s;
s = socket(PF_PACKET, SOCK_DGRAM, 0);
@@ -211,7 +211,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr
memset(ifr, 0, sizeof(*ifr));
strcpy(ifr->ifr_name, dev);
ifr->ifr_hwaddr.sa_family = hatype;
- alen = ll_addr_a2n(ifr->ifr_hwaddr.sa_data, 14, lla);
+ alen = ll_addr_a2n((unsigned char *)(ifr->ifr_hwaddr.sa_data), 14, lla);
if (alen < 0)
return -1;
if (alen != halen) {