aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ifupdown.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 9d35254ee..887c2eea5 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1092,7 +1092,7 @@ int ifupdown_main(int argc, char **argv)
1092 llist_t *target_list = NULL; 1092 llist_t *target_list = NULL;
1093 const char *interfaces = "/etc/network/interfaces"; 1093 const char *interfaces = "/etc/network/interfaces";
1094 FILE *state_fp; 1094 FILE *state_fp;
1095 int any_failures = 0; 1095 bool any_failures = 0;
1096 1096
1097 cmds = iface_down; 1097 cmds = iface_down;
1098 if (applet_name[2] == 'u') { 1098 if (applet_name[2] == 'u') {
@@ -1155,8 +1155,8 @@ int ifupdown_main(int argc, char **argv)
1155 char *iface; 1155 char *iface;
1156 char *liface; 1156 char *liface;
1157 char *pch; 1157 char *pch;
1158 int okay = 0; 1158 bool okay = 0;
1159 int cmds_ret; 1159 unsigned cmds_ret;
1160 1160
1161 iface = xstrdup(target_list->data); 1161 iface = xstrdup(target_list->data);
1162 target_list = target_list->link; 1162 target_list = target_list->link;
@@ -1242,7 +1242,7 @@ int ifupdown_main(int argc, char **argv)
1242 llist_t *iface_state = find_iface_state(state_list, iface); 1242 llist_t *iface_state = find_iface_state(state_list, iface);
1243 1243
1244 if (cmds == iface_up) { 1244 if (cmds == iface_up) {
1245 char *newiface = xasprintf("%s=%s", iface, liface); 1245 char * const newiface = xasprintf("%s=%s", iface, liface);
1246 if (iface_state == NULL) { 1246 if (iface_state == NULL) {
1247 llist_add_to_end(&state_list, newiface); 1247 llist_add_to_end(&state_list, newiface);
1248 } else { 1248 } else {