diff options
Diffstat (limited to 'networking/arping.c')
-rw-r--r-- | networking/arping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/arping.c b/networking/arping.c index 95ca1ed..b66dbff 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -404,7 +404,7 @@ int arping_main(int argc, char **argv) } } else if (!dad) { int on = 1; - int alen = sizeof(saddr); + socklen_t alen = sizeof(saddr); saddr.sin_port = htons(1025); saddr.sin_addr = dst; @@ -437,7 +437,7 @@ int arping_main(int argc, char **argv) } { - int alen = sizeof(me); + socklen_t alen = sizeof(me); if (getsockname(s, (struct sockaddr *) &me, &alen) == -1) { bb_error_msg("getsockname"); @@ -479,9 +479,9 @@ int arping_main(int argc, char **argv) while (1) { sigset_t sset, osset; - char packet[4096]; + unsigned char packet[4096]; struct sockaddr_ll from; - int alen = sizeof(from); + socklen_t alen = sizeof(from); int cc; if ((cc = recvfrom(s, packet, sizeof(packet), 0, |