summaryrefslogtreecommitdiff
path: root/apps/radio/radioart.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/radio/radioart.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/radio/radioart.c')
-rw-r--r--apps/radio/radioart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/radio/radioart.c b/apps/radio/radioart.c
index 4268272cdf..07fab814dd 100644
--- a/apps/radio/radioart.c
+++ b/apps/radio/radioart.c
@@ -99,7 +99,7 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name,
99int radio_get_art_hid(struct dim *requested_dim) 99int radio_get_art_hid(struct dim *requested_dim)
100{ 100{
101 int preset = radio_current_preset(); 101 int preset = radio_current_preset();
102 int i, free_idx = -1; 102 int free_idx = -1;
103 const char* preset_name; 103 const char* preset_name;
104 if (radio_scan_mode() || preset < 0) 104 if (radio_scan_mode() || preset < 0)
105 return -1; 105 return -1;
@@ -108,7 +108,7 @@ int radio_get_art_hid(struct dim *requested_dim)
108 return -1; 108 return -1;
109#endif 109#endif
110 preset_name = radio_get_preset_name(preset); 110 preset_name = radio_get_preset_name(preset);
111 for(i=0;i<MAX_RADIOART_IMAGES;i++) 111 for (int i=0; i<MAX_RADIOART_IMAGES; i++)
112 { 112 {
113 if (radioart[i].handle < 0) 113 if (radioart[i].handle < 0)
114 { 114 {