Changeset 3641 for trunk/payloads

Show
Ignore:
Timestamp:
10/08/08 13:17:25 (3 months ago)
Author:
oxygene
Message:

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 <patrick.georgi@…>
Acked-by: Patrick Georgi <patrick.georgi@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/payloads/libpayload/curses/tinycurses.c

    r3611 r3641  
    737737                        attr_t attr = win->_line[y].text[x].attr; 
    738738 
    739                         unsigned int c = 
    740                                 ((int)color_pairs[PAIR_NUMBER(attr)]) << 8; 
    741  
    742739#ifdef CONFIG_SERIAL_CONSOLE 
    743740                        if (curses_flags & F_ENABLE_SERIAL) { 
     
    807804#endif 
    808805#ifdef CONFIG_VIDEO_CONSOLE 
     806                        unsigned int c = 
     807                                ((int)color_pairs[PAIR_NUMBER(attr)]) << 8; 
     808 
    809809                        c = SWAP_RED_BLUE(c); 
    810810