From 34e643c6901345c56b0efc69e86fca710599ed86 Mon Sep 17 00:00:00 2001 From: vda Date: Mon, 16 Oct 2006 18:24:57 +0000 Subject: strip -> $(STRIP); fix "unused variable" warning (patch by Diekema, Jon (AGRE) ) git-svn-id: svn://busybox.net/trunk/busybox@16396 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- Makefile | 2 +- networking/ifupdown.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 077f5abf2..41b2ea103 100644 --- 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, diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 00eb576f4..45407f9f4 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -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; -- cgit v1.2.3-55-g6feb