summaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-12-15 12:39:25 +0100
committerDenys Vlasenko2011-12-15 12:39:25 +0100
commitd6f5000c1303ca7c31759d380fe154a46bd7126b (patch)
tree8a67c768d3a94b33ce963576fc2c3f2e318afb90 /networking/ifupdown.c
parent454fe29a802f5f32b802df1a54324946d0b87669 (diff)
downloadbusybox-d6f5000c1303ca7c31759d380fe154a46bd7126b.zip
busybox-d6f5000c1303ca7c31759d380fe154a46bd7126b.tar.gz
*: style fixes. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 9c2cad2..73da260 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1312,8 +1312,8 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
llist_t *iface_state = find_iface_state(state_list, iface);
if (cmds == iface_up && !any_failures) {
- char * const newiface = xasprintf("%s=%s", iface, liface);
- if (iface_state == NULL) {
+ char *newiface = xasprintf("%s=%s", iface, liface);
+ if (!iface_state) {
llist_add_to_end(&state_list, newiface);
} else {
free(iface_state->data);