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/plugins/clock | |
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/plugins/clock')
-rw-r--r-- | apps/plugins/clock/clock.c | 1 | ||||
-rw-r--r-- | apps/plugins/clock/clock_draw.c | 2 | ||||
-rw-r--r-- | apps/plugins/clock/clock_settings.c | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/apps/plugins/clock/clock.c b/apps/plugins/clock/clock.c index 8a1a55e17f..641a1e7ad3 100644 --- a/apps/plugins/clock/clock.c +++ b/apps/plugins/clock/clock.c | |||
@@ -110,7 +110,6 @@ enum plugin_status plugin_start(const void* parameter){ | |||
110 | int button; | 110 | int button; |
111 | int last_second = -1; | 111 | int last_second = -1; |
112 | bool redraw=true; | 112 | bool redraw=true; |
113 | int i; | ||
114 | struct time time; | 113 | struct time time; |
115 | struct counter counter; | 114 | struct counter counter; |
116 | bool exit_clock = false; | 115 | bool exit_clock = false; |
diff --git a/apps/plugins/clock/clock_draw.c b/apps/plugins/clock/clock_draw.c index 4b4ba2717c..411a7f1545 100644 --- a/apps/plugins/clock/clock_draw.c +++ b/apps/plugins/clock/clock_draw.c | |||
@@ -70,7 +70,6 @@ void skin_restore_background(struct screen* display, int mode, int skin){ | |||
70 | } | 70 | } |
71 | 71 | ||
72 | void clock_draw_set_colors(void){ | 72 | void clock_draw_set_colors(void){ |
73 | int i; | ||
74 | FOR_NB_SCREENS(i) | 73 | FOR_NB_SCREENS(i) |
75 | skin_set_background(rb->screens[i], | 74 | skin_set_background(rb->screens[i], |
76 | clock_settings.mode, | 75 | clock_settings.mode, |
@@ -78,7 +77,6 @@ void clock_draw_set_colors(void){ | |||
78 | } | 77 | } |
79 | 78 | ||
80 | void clock_draw_restore_colors(void){ | 79 | void clock_draw_restore_colors(void){ |
81 | int i; | ||
82 | FOR_NB_SCREENS(i){ | 80 | FOR_NB_SCREENS(i){ |
83 | skin_restore_background(rb->screens[i], | 81 | skin_restore_background(rb->screens[i], |
84 | clock_settings.mode, | 82 | clock_settings.mode, |
diff --git a/apps/plugins/clock/clock_settings.c b/apps/plugins/clock/clock_settings.c index a407ebe65f..6dd1b5ee65 100644 --- a/apps/plugins/clock/clock_settings.c +++ b/apps/plugins/clock/clock_settings.c | |||
@@ -153,7 +153,6 @@ void draw_message(struct screen* display, int msg, int y){ | |||
153 | } | 153 | } |
154 | 154 | ||
155 | void load_settings(void){ | 155 | void load_settings(void){ |
156 | int i; | ||
157 | struct screen* display; | 156 | struct screen* display; |
158 | FOR_NB_SCREENS(i){ | 157 | FOR_NB_SCREENS(i){ |
159 | display=rb->screens[i]; | 158 | display=rb->screens[i]; |
@@ -179,7 +178,6 @@ void load_settings(void){ | |||
179 | } | 178 | } |
180 | 179 | ||
181 | void save_settings(void){ | 180 | void save_settings(void){ |
182 | int i; | ||
183 | struct screen* display; | 181 | struct screen* display; |
184 | if(!settings_needs_saving(&clock_settings)) | 182 | if(!settings_needs_saving(&clock_settings)) |
185 | return; | 183 | return; |