patch-2.1.128 linux/scripts/lxdialog/textbox.c

Next file: linux/CREDITS
Previous file: linux/scripts/lxdialog/menubox.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.127/linux/scripts/lxdialog/textbox.c linux/scripts/lxdialog/textbox.c
@@ -453,9 +453,6 @@
 {
     int y, x;
     char *line;
-#if OLD_NCURSES
-     int i;
-#endif
 
     line = get_line ();
     line += MIN (strlen (line), hscroll);	/* Scroll horizontally */
@@ -466,8 +463,11 @@
     getyx (win, y, x);
     /* Clear 'residue' of previous line */
 #if OLD_NCURSES
-    for (i = 0; i < width - x; i++)
-	waddch (win, ' ');
+    {
+        int i;
+        for (i = 0; i < width - x; 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