diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-01-31 01:30:41 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-01-31 01:30:41 +0300 |
commit | 0cb6f35c33a2a3fd390aaa36da72e0600f205918 (patch) | |
tree | 6f685077a27f04869b4f152cbe4287c023554afb /networking/arping.c | |
parent | 5e678873f9ff7c95d43b278feee547ce989b3b20 (diff) |
fix up annoying signed/unsigned and mixed type errors
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 95ca1ed2e..b66dbff1e 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, |