aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
commit0171777467b905d60f0012a8eaceeb5992b379ed (patch)
tree9e3a8f6e5145fc8be56ed9ca59011eb187c7ebe3 /com32/cmenu
parent3bead6fddbbb82d853fc6650839e27e8d56d8d5b (diff)
downloadsyslinux-0171777467b905d60f0012a8eaceeb5992b379ed.tar.gz
syslinux-0171777467b905d60f0012a8eaceeb5992b379ed.tar.xz
syslinux-0171777467b905d60f0012a8eaceeb5992b379ed.zip
com32/cmenu/libmenu/help.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/help.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/com32/cmenu/libmenu/help.c b/com32/cmenu/libmenu/help.c
index 0df1e103..ff917d92 100644
--- a/com32/cmenu/libmenu/help.c
+++ b/com32/cmenu/libmenu/help.c
@@ -54,10 +54,9 @@ static int countlines(char *buffer)
static void printtext(char *buf, int from)
{
char *f, *t;
- int right, nlines, i;
+ int nlines, i;
// clear window to print
- right = nc - HELP_RIGHT_MARGIN;
nlines = nr - HELP_BODY_ROW - HELP_BOTTOM_MARGIN - 1;
f = findline(buf, from);
@@ -66,7 +65,8 @@ static void printtext(char *buf, int from)
if (*f == '\n')
f++; // start of from+1st line
t = f;
- while (i < nlines) {
+
+ for (i = 0; i < nlines; i++) {
gotoxy(HELP_BODY_ROW + i, HELP_LEFT_MARGIN);
clear_end_of_line();
putchar(SO);
@@ -83,7 +83,6 @@ static void printtext(char *buf, int from)
}
putchar('\n');
t++;
- i++;
}
}