strip -> $(STRIP); fix "unused variable" warning
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 16 Oct 2006 18:24:57 +0000 (18:24 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 16 Oct 2006 18:24:57 +0000 (18:24 -0000)
(patch by Diekema, Jon (AGRE) <Jon.Diekema@smiths-aerospace.com>)

Makefile
networking/ifupdown.c

index 077f5abf22ff0d0871fb958983ec8e9450a92b45..41b2ea1035101e1aa43cf2d77fc33fa86504f40f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -681,7 +681,7 @@ busybox_unstripped: $(busybox-all) FORCE
        $(Q)rm -f .old_version
 
 busybox: busybox_unstripped
-       $(Q)strip -s --remove-section=.note --remove-section=.comment \
+       $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \
                busybox_unstripped -o $@
 
 # The actual objects are generated when descending, 
index 00eb576f4b0a4db7e5492f4b5ac49bbaabb01917..45407f9f4d03d259b6cfa2bfdb5ac78cd1f73d74 100644 (file)
@@ -1099,7 +1099,6 @@ int ifupdown_main(int argc, char **argv)
        llist_t *target_list = NULL;
        const char *interfaces = "/etc/network/interfaces";
        int any_failures = 0;
-       int i;
 
        if (applet_name[2] == 'u') {
                /* ifup command */
@@ -1188,6 +1187,7 @@ int ifupdown_main(int argc, char **argv)
                        struct mapping_defn_t *currmap;
 
                        for (currmap = defn->mappings; currmap; currmap = currmap->next) {
+                               int i;
                                for (i = 0; i < currmap->n_matches; i++) {
                                        if (fnmatch(currmap->match[i], liface, 0) != 0)
                                                continue;