summaryrefslogtreecommitdiff
path: root/networking/arping.c
diff options
context:
space:
mode:
authorEric Andersen2006-01-30 22:30:41 +0000
committerEric Andersen2006-01-30 22:30:41 +0000
commit0cb6f35c33a2a3fd390aaa36da72e0600f205918 (patch)
tree6f685077a27f04869b4f152cbe4287c023554afb /networking/arping.c
parent5e678873f9ff7c95d43b278feee547ce989b3b20 (diff)
downloadbusybox-0cb6f35c33a2a3fd390aaa36da72e0600f205918.zip
busybox-0cb6f35c33a2a3fd390aaa36da72e0600f205918.tar.gz
fix up annoying signed/unsigned and mixed type errors
Diffstat (limited to 'networking/arping.c')
-rw-r--r--networking/arping.c8
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,