Changeset 3427 for trunk/payloads/coreinfo/coreinfo.c
- Timestamp:
- 07/18/08 16:08:18 (4 months ago)
- Files:
-
- 1 modified
-
trunk/payloads/coreinfo/coreinfo.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/payloads/coreinfo/coreinfo.c
r3419 r3427 78 78 }; 79 79 80 81 80 static WINDOW *modwin; 82 81 static WINDOW *menuwin; … … 122 121 struct tm tm; 123 122 124 while (nvram_updating())123 while (nvram_updating()) 125 124 mdelay(10); 126 125 … … 128 127 129 128 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); 132 131 } 133 132 #endif … … 185 184 ptr += sprintf(ptr, "[ %s ]", str); 186 185 187 188 189 186 for (i = ((SCREEN_X - len) / 2) + len; i < SCREEN_X; i++) 190 187 ptr += sprintf(ptr, "="); … … 208 205 if (key >= 'a' && key <= 'z') { 209 206 int index = key - 'a'; 210 211 207 if (index < cat->count) { 212 213 cat->cur = index; 208 cat->cur = index; 214 209 redraw_module(cat); 215 210 return; … … 297 292 298 293 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++) 300 295 categories[i].modules[j]->init(); 301 296 … … 307 302 } 308 303 309 PAYLOAD_INFO(name, "coreinfo");310 PAYLOAD_INFO(listname, "System Information");311 PAYLOAD_INFO(desc, "Display information about the system");304 PAYLOAD_INFO(name, "coreinfo"); 305 PAYLOAD_INFO(listname, "System Information"); 306 PAYLOAD_INFO(desc, "Display information about the system");
