diff options
author | Björn Stenberg <bjorn@haxx.se> | 2011-10-15 19:35:02 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2011-10-15 19:35:02 +0000 |
commit | 0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 (patch) | |
tree | ce2fbdea468cb8223598c546fee765a10660a0b0 /apps/main.c | |
parent | f301ac05f9dd6ace2355fa822bd61d454c2c4f28 (diff) | |
download | rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.tar.gz rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.zip |
Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/main.c b/apps/main.c index f0da50eaa6..8f635ed9b1 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -152,7 +152,6 @@ int main(void) INIT_ATTR MAIN_NORETURN_ATTR; | |||
152 | int main(void) | 152 | int main(void) |
153 | { | 153 | { |
154 | #endif | 154 | #endif |
155 | int i; | ||
156 | CHART(">init"); | 155 | CHART(">init"); |
157 | init(); | 156 | init(); |
158 | CHART("<init"); | 157 | CHART("<init"); |
@@ -336,9 +335,6 @@ static void init_tagcache(void) | |||
336 | 335 | ||
337 | static void init(void) | 336 | static void init(void) |
338 | { | 337 | { |
339 | #ifdef HAVE_LCD_BITMAP | ||
340 | int i; | ||
341 | #endif | ||
342 | system_init(); | 338 | system_init(); |
343 | core_allocator_init(); | 339 | core_allocator_init(); |
344 | kernel_init(); | 340 | kernel_init(); |
@@ -456,8 +452,8 @@ static void init(void) | |||
456 | lcd_remote_init(); | 452 | lcd_remote_init(); |
457 | #endif | 453 | #endif |
458 | #ifdef HAVE_LCD_BITMAP | 454 | #ifdef HAVE_LCD_BITMAP |
459 | FOR_NB_SCREENS(rc) | 455 | FOR_NB_SCREENS(i) |
460 | global_status.font_id[rc] = FONT_SYSFIXED; | 456 | global_status.font_id[i] = FONT_SYSFIXED; |
461 | font_init(); | 457 | font_init(); |
462 | #endif | 458 | #endif |
463 | 459 | ||