diff options
-rw-r--r-- | archival/libunarchive/get_header_cpio.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iplink.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 4 | ||||
-rw-r--r-- | networking/libiproute/libnetlink.c | 2 | ||||
-rw-r--r-- | networking/libiproute/utils.c | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index 11925c4e3..bdd80dfea 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
@@ -66,7 +66,7 @@ extern char get_header_cpio(archive_handle_t *archive_handle) | |||
66 | /* There can be padding before archive header */ | 66 | /* There can be padding before archive header */ |
67 | data_align(archive_handle, 4); | 67 | data_align(archive_handle, 4); |
68 | 68 | ||
69 | if (archive_xread_all_eof(archive_handle, cpio_header, 110) == 0) { | 69 | if (archive_xread_all_eof(archive_handle, (unsigned char*)cpio_header, 110) == 0) { |
70 | return(EXIT_FAILURE); | 70 | return(EXIT_FAILURE); |
71 | } | 71 | } |
72 | archive_handle->offset += 110; | 72 | archive_handle->offset += 110; |
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) | |||
453 | break; | 453 | break; |
454 | case 1: /* scope */ | 454 | case 1: /* scope */ |
455 | { | 455 | { |
456 | int scope = 0; | 456 | uint32_t scope = 0; |
457 | NEXT_ARG(); | 457 | NEXT_ARG(); |
458 | filter.scopemask = -1; | 458 | filter.scopemask = -1; |
459 | if (rtnl_rtscope_a2n(&scope, *argv)) { | 459 | if (rtnl_rtscope_a2n(&scope, *argv)) { |
@@ -713,7 +713,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) | |||
713 | } | 713 | } |
714 | case 5: /* scope */ | 714 | case 5: /* scope */ |
715 | { | 715 | { |
716 | int scope = 0; | 716 | uint32_t scope = 0; |
717 | NEXT_ARG(); | 717 | NEXT_ARG(); |
718 | if (rtnl_rtscope_a2n(&scope, *argv)) { | 718 | if (rtnl_rtscope_a2n(&scope, *argv)) { |
719 | invarg(*argv, "invalid scope value."); | 719 | 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) | |||
166 | { | 166 | { |
167 | struct ifreq ifr; | 167 | struct ifreq ifr; |
168 | struct sockaddr_ll me; | 168 | struct sockaddr_ll me; |
169 | int alen; | 169 | socklen_t alen; |
170 | int s; | 170 | int s; |
171 | 171 | ||
172 | s = socket(PF_PACKET, SOCK_DGRAM, 0); | 172 | 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 | |||
211 | memset(ifr, 0, sizeof(*ifr)); | 211 | memset(ifr, 0, sizeof(*ifr)); |
212 | strcpy(ifr->ifr_name, dev); | 212 | strcpy(ifr->ifr_name, dev); |
213 | ifr->ifr_hwaddr.sa_family = hatype; | 213 | ifr->ifr_hwaddr.sa_family = hatype; |
214 | alen = ll_addr_a2n(ifr->ifr_hwaddr.sa_data, 14, lla); | 214 | alen = ll_addr_a2n((unsigned char *)(ifr->ifr_hwaddr.sa_data), 14, lla); |
215 | if (alen < 0) | 215 | if (alen < 0) |
216 | return -1; | 216 | return -1; |
217 | if (alen != halen) { | 217 | 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) | |||
347 | } | 347 | } |
348 | rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); | 348 | rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); |
349 | } else if (matches(*argv, "protocol") == 0) { | 349 | } else if (matches(*argv, "protocol") == 0) { |
350 | int prot; | 350 | uint32_t prot; |
351 | NEXT_ARG(); | 351 | NEXT_ARG(); |
352 | if (rtnl_rtprot_a2n(&prot, *argv)) | 352 | if (rtnl_rtprot_a2n(&prot, *argv)) |
353 | invarg("\"protocol\" value is invalid\n", *argv); | 353 | invarg("\"protocol\" value is invalid\n", *argv); |
@@ -493,7 +493,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
493 | 493 | ||
494 | while (argc > 0) { | 494 | while (argc > 0) { |
495 | if (matches(*argv, "protocol") == 0) { | 495 | if (matches(*argv, "protocol") == 0) { |
496 | int prot = 0; | 496 | uint32_t prot = 0; |
497 | NEXT_ARG(); | 497 | NEXT_ARG(); |
498 | filter.protocolmask = -1; | 498 | filter.protocolmask = -1; |
499 | if (rtnl_rtprot_a2n(&prot, *argv)) { | 499 | 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) | |||
30 | 30 | ||
31 | int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions) | 31 | int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions) |
32 | { | 32 | { |
33 | int addr_len; | 33 | socklen_t addr_len; |
34 | 34 | ||
35 | memset(rth, 0, sizeof(rth)); | 35 | memset(rth, 0, sizeof(rth)); |
36 | 36 | ||
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) | |||
164 | int get_prefix_1(inet_prefix * dst, char *arg, int family) | 164 | int get_prefix_1(inet_prefix * dst, char *arg, int family) |
165 | { | 165 | { |
166 | int err; | 166 | int err; |
167 | unsigned plen; | 167 | int plen; |
168 | char *slash; | 168 | char *slash; |
169 | 169 | ||
170 | memset(dst, 0, sizeof(*dst)); | 170 | memset(dst, 0, sizeof(*dst)); |