From 2bfc759824dea490be444d0244b0096a5855559d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 27 Jun 2011 14:23:06 +0200 Subject: [PATCH] remove unused variables --- newt.c | 1 - whiptail.c | 3 --- 2 files changed, 4 deletions(-) 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); -- 2.47.2