]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
remove unused variables
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Jun 2011 12:23:06 +0000 (14:23 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Jun 2011 12:24:03 +0000 (14:24 +0200)
newt.c
whiptail.c

diff --git a/newt.c b/newt.c
index 605b6facccbddacec0e5c954f2ab8c5aa4ae5677..29bea79ca116962fe185576db15cb5e1783ea37e 100644 (file)
--- 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;
index f7169e0c0356129556e0acfb6e7aa85eac1395c3..7aa811ac945e019b9b41204d8670020567929e7a 100644 (file)
@@ -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);