summaryrefslogtreecommitdiff
path: root/networking/nameif.c
diff options
context:
space:
mode:
authorRob Landley2006-05-04 19:52:28 +0000
committerRob Landley2006-05-04 19:52:28 +0000
commitb1c3fbc6776db1b85ec1d5028f76129bbae43e22 (patch)
tree202bae5682c8ce74a12b78b0eade275a4554689b /networking/nameif.c
parent0c43046fdeee696491d5d3c89760ae98416f9505 (diff)
downloadbusybox-b1c3fbc6776db1b85ec1d5028f76129bbae43e22.zip
busybox-b1c3fbc6776db1b85ec1d5028f76129bbae43e22.tar.gz
CONFIG->ENABLE migration.
Diffstat (limited to 'networking/nameif.c')
-rw-r--r--networking/nameif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/nameif.c b/networking/nameif.c
index f28e5eb..8590a98 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -184,11 +184,11 @@ int nameif_main(int argc, char **argv)
}
if (ch->next != NULL)
(ch->next)->prev = ch->prev;
-#ifdef CONFIG_FEATURE_CLEAN_UP
- free(ch->ifname);
- free(ch->mac);
- free(ch);
-#endif
+ if (ENABLE_FEATURE_CLEAN_UP) {
+ free(ch->ifname);
+ free(ch->mac);
+ free(ch);
+ }
}
return 0;