diff options
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r-- | networking/ifupdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 50b96261b..c12391863 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -486,7 +486,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = { | |||
486 | #if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP | 486 | #if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP |
487 | static int dhcp_up(struct interface_defn_t *ifd, execfn *exec) | 487 | static int dhcp_up(struct interface_defn_t *ifd, execfn *exec) |
488 | { | 488 | { |
489 | int i; | 489 | unsigned i; |
490 | #if ENABLE_FEATURE_IFUPDOWN_IP | 490 | #if ENABLE_FEATURE_IFUPDOWN_IP |
491 | /* ip doesn't up iface when it configures it (unlike ifconfig) */ | 491 | /* ip doesn't up iface when it configures it (unlike ifconfig) */ |
492 | if (!execute("ip link set %iface% up", ifd, exec)) | 492 | if (!execute("ip link set %iface% up", ifd, exec)) |
@@ -522,7 +522,7 @@ static int dhcp_up(struct interface_defn_t *ifd ATTRIBUTE_UNUSED, | |||
522 | #if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP | 522 | #if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP |
523 | static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | 523 | static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) |
524 | { | 524 | { |
525 | int i; | 525 | unsigned i; |
526 | for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) { | 526 | for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) { |
527 | if (exists_execable(ext_dhcp_clients[i].name)) | 527 | if (exists_execable(ext_dhcp_clients[i].name)) |
528 | return execute(ext_dhcp_clients[i].stopcmd, ifd, exec); | 528 | return execute(ext_dhcp_clients[i].stopcmd, ifd, exec); |
@@ -1154,7 +1154,7 @@ int ifupdown_main(int argc, char **argv) | |||
1154 | char *liface; | 1154 | char *liface; |
1155 | char *pch; | 1155 | char *pch; |
1156 | bool okay = 0; | 1156 | bool okay = 0; |
1157 | unsigned cmds_ret; | 1157 | int cmds_ret; |
1158 | 1158 | ||
1159 | iface = xstrdup(target_list->data); | 1159 | iface = xstrdup(target_list->data); |
1160 | target_list = target_list->link; | 1160 | target_list = target_list->link; |