patch-2.1.128 linux/scripts/lxdialog/menubox.c
Next file: linux/scripts/lxdialog/textbox.c
Previous file: linux/net/wanrouter/wanproc.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Nov 8 14:36:46 1998
- Orig file:
v2.1.127/linux/scripts/lxdialog/menubox.c
- Orig date:
Fri Oct 23 22:01:27 1998
diff -u --recursive --new-file v2.1.127/linux/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -62,9 +62,6 @@
{
int j;
char menu_item[menu_width+1];
-#if OLD_NCURSES
- int i;
-#endif
strncpy(menu_item, item, menu_width);
menu_item[menu_width] = 0;
@@ -74,8 +71,11 @@
wattrset (win, menubox_attr);
wmove (win, choice, 0);
#if OLD_NCURSES
- for (i = 0; i < menu_width; i++)
- waddch (win, ' ');
+ {
+ int i;
+ for (i = 0; i < menu_width; i++)
+ waddch (win, ' ');
+ }
#else
wclrtoeol(win);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov