Show
Ignore:
Timestamp:
07/18/08 16:08:18 (4 months ago)
Author:
uwe
Message:

Random coding style fixes and simplifications (trivial).
This will even reduce the final payload size a bit.

Signed-off-by: Uwe Hermann <uwe@…>
Acked-by: Uwe Hermann <uwe@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/payloads/coreinfo/coreinfo.c

    r3419 r3427  
    7878}; 
    7979 
    80  
    8180static WINDOW *modwin; 
    8281static WINDOW *menuwin; 
     
    122121        struct tm tm; 
    123122 
    124         while(nvram_updating()) 
     123        while (nvram_updating()) 
    125124                mdelay(10); 
    126125 
     
    128127 
    129128        mvwprintw(menuwin, 0, 57, "%02d/%02d/%04d - %02d:%02d:%02d", 
    130                 tm.tm_mon, tm.tm_mday, 1900+tm.tm_year, tm.tm_hour, 
    131                 tm.tm_min, tm.tm_sec); 
     129                  tm.tm_mon, tm.tm_mday, 1900+tm.tm_year, tm.tm_hour, 
     130                  tm.tm_min, tm.tm_sec); 
    132131} 
    133132#endif 
     
    185184        ptr += sprintf(ptr, "[ %s ]", str); 
    186185 
    187  
    188  
    189186        for (i = ((SCREEN_X - len) / 2) + len; i < SCREEN_X; i++) 
    190187                ptr += sprintf(ptr, "="); 
     
    208205        if (key >= 'a' && key <= 'z') { 
    209206                int index = key - 'a'; 
    210  
    211207                if (index < cat->count) { 
    212  
    213                 cat->cur = index; 
     208                        cat->cur = index; 
    214209                        redraw_module(cat); 
    215210                        return; 
     
    297292 
    298293        for (i = 0; i < ARRAY_SIZE(categories); i++) { 
    299                 for(j = 0; j < categories[i].count; j++) 
     294                for (j = 0; j < categories[i].count; j++) 
    300295                        categories[i].modules[j]->init(); 
    301296 
     
    307302} 
    308303 
    309 PAYLOAD_INFO(name,"coreinfo"); 
    310 PAYLOAD_INFO(listname,"System Information"); 
    311 PAYLOAD_INFO(desc,"Display information about the system"); 
     304PAYLOAD_INFO(name, "coreinfo"); 
     305PAYLOAD_INFO(listname, "System Information"); 
     306PAYLOAD_INFO(desc, "Display information about the system");