Author: oxygene
Date: 2008-10-08 13:17:25 +0200 (Wed, 08 Oct 2008)
New Revision: 3641

Modified:
   trunk/payloads/libpayload/curses/tinycurses.c
Log:
move variable declaration to where it is used, to prevent gcc failure.
Reported by Roman Yeryomin (and also seen reported earlier). (trivial)

Signed-off-by: Patrick Georgi <[EMAIL PROTECTED]>
Acked-by: Patrick Georgi <[EMAIL PROTECTED]>

Modified: trunk/payloads/libpayload/curses/tinycurses.c
===================================================================
--- trunk/payloads/libpayload/curses/tinycurses.c       2008-10-07 16:25:10 UTC 
(rev 3640)
+++ trunk/payloads/libpayload/curses/tinycurses.c       2008-10-08 11:17:25 UTC 
(rev 3641)
@@ -736,9 +736,6 @@
                for (x = win->_line[y].firstchar; x <= win->_line[y].lastchar; 
x++) {
                        attr_t attr = win->_line[y].text[x].attr;
 
-                       unsigned int c =
-                               ((int)color_pairs[PAIR_NUMBER(attr)]) << 8;
-
 #ifdef CONFIG_SERIAL_CONSOLE
                        if (curses_flags & F_ENABLE_SERIAL) {
                                ch = win->_line[y].text[x].chars[0];
@@ -806,6 +803,9 @@
                        }
 #endif
 #ifdef CONFIG_VIDEO_CONSOLE
+                       unsigned int c =
+                               ((int)color_pairs[PAIR_NUMBER(attr)]) << 8;
+
                        c = SWAP_RED_BLUE(c);
 
                        if (curses_flags & F_ENABLE_CONSOLE) {


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to