diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-01-30 21:00:02 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-01-30 21:00:02 +0300 |
commit | d78aea8b8eb1da818c04929a2bddbed01a796c58 (patch) | |
tree | 601a057c6160d3474cd4c0d1f3ae6d6e5b5cab17 /networking/libiproute/iplink.c | |
parent | 4bf31272ff074e5383b61f43aa270b50908991f8 (diff) |
sort out yet more type issues
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r-- | networking/libiproute/iplink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 91c85820c..12677d522 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) { |