summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2011-10-15 19:35:02 +0000
committerBjörn Stenberg <bjorn@haxx.se>2011-10-15 19:35:02 +0000
commit0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 (patch)
treece2fbdea468cb8223598c546fee765a10660a0b0 /apps/debug_menu.c
parentf301ac05f9dd6ace2355fa822bd61d454c2c4f28 (diff)
downloadrockbox-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/debug_menu.c')
-rw-r--r--apps/debug_menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index e96b8c553f..442bc8b162 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -293,7 +293,7 @@ static void dbg_audio_task(void)
293static bool dbg_buffering_thread(void) 293static bool dbg_buffering_thread(void)
294{ 294{
295 int button; 295 int button;
296 int line, i; 296 int line;
297 bool done = false; 297 bool done = false;
298 size_t bufused; 298 size_t bufused;
299 size_t bufsize = pcmbuf_get_bufsize(); 299 size_t bufsize = pcmbuf_get_bufsize();
@@ -2120,7 +2120,6 @@ static const struct the_menu_item menuitems[] = {
2120 }; 2120 };
2121static int menu_action_callback(int btn, struct gui_synclist *lists) 2121static int menu_action_callback(int btn, struct gui_synclist *lists)
2122{ 2122{
2123 int i;
2124 if (btn == ACTION_STD_OK) 2123 if (btn == ACTION_STD_OK)
2125 { 2124 {
2126 FOR_NB_SCREENS(i) 2125 FOR_NB_SCREENS(i)