aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2006-01-30 18:00:02 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2006-01-30 18:00:02 +0000
commitd78aea8b8eb1da818c04929a2bddbed01a796c58 (patch)
tree601a057c6160d3474cd4c0d1f3ae6d6e5b5cab17 /networking
parent4bf31272ff074e5383b61f43aa270b50908991f8 (diff)
downloadbusybox-d78aea8b8eb1da818c04929a2bddbed01a796c58.tar.gz
busybox-d78aea8b8eb1da818c04929a2bddbed01a796c58.tar.bz2
sort out yet more type issues
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/ipaddress.c4
-rw-r--r--networking/libiproute/iplink.c4
-rw-r--r--networking/libiproute/iproute.c4
-rw-r--r--networking/libiproute/libnetlink.c2
-rw-r--r--networking/libiproute/utils.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 12b8fc8f8..9db79eacb 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -453,7 +453,7 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush)
break;
case 1: /* scope */
{
- int scope = 0;
+ uint32_t scope = 0;
NEXT_ARG();
filter.scopemask = -1;
if (rtnl_rtscope_a2n(&scope, *argv)) {
@@ -713,7 +713,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
}
case 5: /* scope */
{
- int scope = 0;
+ uint32_t scope = 0;
NEXT_ARG();
if (rtnl_rtscope_a2n(&scope, *argv)) {
invarg(*argv, "invalid scope value.");
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) {
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 1c4f75520..7b5130050 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -347,7 +347,7 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
}
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu);
} else if (matches(*argv, "protocol") == 0) {
- int prot;
+ uint32_t prot;
NEXT_ARG();
if (rtnl_rtprot_a2n(&prot, *argv))
invarg("\"protocol\" value is invalid\n", *argv);
@@ -493,7 +493,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
while (argc > 0) {
if (matches(*argv, "protocol") == 0) {
- int prot = 0;
+ uint32_t prot = 0;
NEXT_ARG();
filter.protocolmask = -1;
if (rtnl_rtprot_a2n(&prot, *argv)) {
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c
index 5545be8fe..efbb6f104 100644
--- a/networking/libiproute/libnetlink.c
+++ b/networking/libiproute/libnetlink.c
@@ -30,7 +30,7 @@ void rtnl_close(struct rtnl_handle *rth)
int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions)
{
- int addr_len;
+ socklen_t addr_len;
memset(rth, 0, sizeof(rth));
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 0dd5d9519..984f7bed9 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -164,7 +164,7 @@ int get_addr_1(inet_prefix * addr, char *name, int family)
int get_prefix_1(inet_prefix * dst, char *arg, int family)
{
int err;
- unsigned plen;
+ int plen;
char *slash;
memset(dst, 0, sizeof(*dst));