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/gui/wps.c | |
parent | f301ac05f9dd6ace2355fa822bd61d454c2c4f28 (diff) |
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/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 4d56062c8d..6486e42fbb 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -120,7 +120,6 @@ char* wps_default_skin(enum screen_type screen) static void update_non_static(void) { - int i; FOR_NB_SCREENS(i) skin_update(WPS, i, SKIN_REFRESH_NON_STATIC); } @@ -306,7 +305,6 @@ bool ffwd_rew(int button) int direction = -1; /* forward=1 or backward=-1 */ bool exit = false; bool usb = false; - int i = 0; const long ff_rw_accel = (global_settings.ff_rewind_accel + 3); if (button == ACTION_NONE) @@ -630,8 +628,6 @@ static void wps_lcd_activation_hook(void *param) static void gwps_leave_wps(void) { - int i; - FOR_NB_SCREENS(i) { skin_get_gwps(WPS, i)->display->stop_scroll(); @@ -657,7 +653,6 @@ static void gwps_leave_wps(void) * display the wps on entering or restoring */ static void gwps_enter_wps(void) { - int i; struct gui_wps *gwps; struct screen *display; FOR_NB_SCREENS(i) @@ -738,7 +733,6 @@ long gui_wps_show(void) bool bookmark = false; bool update = false; bool vol_changed = false; - int i; long last_left = 0, last_right = 0; struct wps_state *state = skin_get_global_state(); |