From: Miroslav Lichvar Date: Mon, 27 Jun 2011 12:23:06 +0000 (+0200) Subject: remove unused variables X-Git-Tag: r0-52-13~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bfc759824dea490be444d0244b0096a5855559d;p=thirdparty%2Fnewt.git remove unused variables --- diff --git a/newt.c b/newt.c index 605b6fa..29bea79 100644 --- a/newt.c +++ b/newt.c @@ -237,7 +237,6 @@ static void updateColorset(char *fg, char *bg, char **fg_p, char **bg_p) static void parseColors(char *s, struct newtColors *palette) { char *name, *str, *fg, *bg; - int i; for (str = s; (s = strtok(str, ";:\n\r\t ")); str = NULL) { name = s; diff --git a/whiptail.c b/whiptail.c index f7169e0..7aa811a 100644 --- a/whiptail.c +++ b/whiptail.c @@ -324,7 +324,6 @@ int main(int argc, const char ** argv) { enum mode mode = MODE_NONE; poptContext optCon; int arg; - const char * optArg; char * text; const char * nextArg; char * end; @@ -398,8 +397,6 @@ int main(int argc, const char ** argv) { optCon = poptGetContext("whiptail", argc, argv, optionsTable, 0); while ((arg = poptGetNextOpt(optCon)) > 0) { - optArg = poptGetOptArg(optCon); - switch (arg) { case OPT_INFOBOX: if (mode != MODE_NONE) usage(WAS_ERROR);