summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.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/recorder/recording.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/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index d706899b1c..15b628508f 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -184,7 +184,7 @@ static bool remote_display_on = true;
184#endif 184#endif
185 185
186/* as we have the ability to disable the remote, we need an alternative loop */ 186/* as we have the ability to disable the remote, we need an alternative loop */
187#define FOR_NB_ACTIVE_SCREENS(i) for(i = 0; i < screen_update; i++) 187#define FOR_NB_ACTIVE_SCREENS(i) for(int i = 0; i < screen_update; i++)
188 188
189static bool update_list = false; /* (GIU) list needs updating */ 189static bool update_list = false; /* (GIU) list needs updating */
190 190
@@ -1042,7 +1042,6 @@ bool recording_screen(bool no_source)
1042 int peak_l, peak_r; 1042 int peak_l, peak_r;
1043 int balance = 0; 1043 int balance = 0;
1044#endif 1044#endif
1045 int i;
1046 int pm_x[NB_SCREENS]; /* peakmeter (and trigger bar) x pos */ 1045 int pm_x[NB_SCREENS]; /* peakmeter (and trigger bar) x pos */
1047 int pm_y[NB_SCREENS]; /* peakmeter y pos */ 1046 int pm_y[NB_SCREENS]; /* peakmeter y pos */
1048 int pm_h[NB_SCREENS]; /* peakmeter height */ 1047 int pm_h[NB_SCREENS]; /* peakmeter height */
@@ -2009,7 +2008,7 @@ static bool f2_rec_screen(void)
2009 2008
2010 bool exit = false; 2009 bool exit = false;
2011 bool used = false; 2010 bool used = false;
2012 int w, h, i; 2011 int w, h;
2013 char buf[32]; 2012 char buf[32];
2014 int button; 2013 int button;
2015 struct audio_recording_options rec_options; 2014 struct audio_recording_options rec_options;
@@ -2140,7 +2139,7 @@ static bool f3_rec_screen(void)
2140{ 2139{
2141 bool exit = false; 2140 bool exit = false;
2142 bool used = false; 2141 bool used = false;
2143 int w, h, i; 2142 int w, h;
2144 int button; 2143 int button;
2145 const char *src_str[] = 2144 const char *src_str[] =
2146 { 2145 {