- very minor size tweak.
TODO: mv to globals, config-out non-busybox dhcp client stuff, reduce string bloat, etc text data bss dec hex filename 7543 0 28 7571 1d93 networking/ifupdown.o.orig 7515 0 28 7543 1d77 networking/ifupdown.o
This commit is contained in:
parent
3d101dd467
commit
16deb86746
@ -1092,7 +1092,7 @@ int ifupdown_main(int argc, char **argv)
|
|||||||
llist_t *target_list = NULL;
|
llist_t *target_list = NULL;
|
||||||
const char *interfaces = "/etc/network/interfaces";
|
const char *interfaces = "/etc/network/interfaces";
|
||||||
FILE *state_fp;
|
FILE *state_fp;
|
||||||
int any_failures = 0;
|
bool any_failures = 0;
|
||||||
|
|
||||||
cmds = iface_down;
|
cmds = iface_down;
|
||||||
if (applet_name[2] == 'u') {
|
if (applet_name[2] == 'u') {
|
||||||
@ -1155,8 +1155,8 @@ int ifupdown_main(int argc, char **argv)
|
|||||||
char *iface;
|
char *iface;
|
||||||
char *liface;
|
char *liface;
|
||||||
char *pch;
|
char *pch;
|
||||||
int okay = 0;
|
bool okay = 0;
|
||||||
int cmds_ret;
|
unsigned cmds_ret;
|
||||||
|
|
||||||
iface = xstrdup(target_list->data);
|
iface = xstrdup(target_list->data);
|
||||||
target_list = target_list->link;
|
target_list = target_list->link;
|
||||||
@ -1242,7 +1242,7 @@ int ifupdown_main(int argc, char **argv)
|
|||||||
llist_t *iface_state = find_iface_state(state_list, iface);
|
llist_t *iface_state = find_iface_state(state_list, iface);
|
||||||
|
|
||||||
if (cmds == iface_up) {
|
if (cmds == iface_up) {
|
||||||
char *newiface = xasprintf("%s=%s", iface, liface);
|
char * const newiface = xasprintf("%s=%s", iface, liface);
|
||||||
if (iface_state == NULL) {
|
if (iface_state == NULL) {
|
||||||
llist_add_to_end(&state_list, newiface);
|
llist_add_to_end(&state_list, newiface);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user