diff options
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index ee8ab102e..a24ab01fe 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -525,7 +525,7 @@ static int if_readconf(void) | |||
525 | if (ioctl_or_warn(skfd, SIOCGIFCONF, &ifc) < 0) { | 525 | if (ioctl_or_warn(skfd, SIOCGIFCONF, &ifc) < 0) { |
526 | goto out; | 526 | goto out; |
527 | } | 527 | } |
528 | if (ifc.ifc_len == sizeof(struct ifreq) * numreqs) { | 528 | if (ifc.ifc_len == (int)(sizeof(struct ifreq) * numreqs)) { |
529 | /* assume it overflowed and try again */ | 529 | /* assume it overflowed and try again */ |
530 | numreqs += 10; | 530 | numreqs += 10; |
531 | continue; | 531 | continue; |
@@ -862,7 +862,7 @@ const struct hwtype *get_hwntype(int type) | |||
862 | /* return 1 if address is all zeros */ | 862 | /* return 1 if address is all zeros */ |
863 | static int hw_null_address(const struct hwtype *hw, void *ap) | 863 | static int hw_null_address(const struct hwtype *hw, void *ap) |
864 | { | 864 | { |
865 | unsigned int i; | 865 | int i; |
866 | unsigned char *address = (unsigned char *) ap; | 866 | unsigned char *address = (unsigned char *) ap; |
867 | 867 | ||
868 | for (i = 0; i < hw->alen; i++) | 868 | for (i = 0; i < hw->alen; i++) |