summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/alarmclock.c1
-rw-r--r--apps/plugins/clock/clock.c1
-rw-r--r--apps/plugins/clock/clock_draw.c2
-rw-r--r--apps/plugins/clock/clock_settings.c2
-rw-r--r--apps/plugins/demystify.c1
-rw-r--r--apps/plugins/dice.c2
-rw-r--r--apps/plugins/frotz/frotz.c1
-rw-r--r--apps/plugins/iriverify.c1
-rw-r--r--apps/plugins/jackpot.c11
-rw-r--r--apps/plugins/lrcplayer.c7
-rw-r--r--apps/plugins/maze.c1
-rw-r--r--apps/plugins/metronome.c1
-rw-r--r--apps/plugins/properties.c3
-rw-r--r--apps/plugins/random_folder_advance_config.c1
-rw-r--r--apps/plugins/search.c1
-rw-r--r--apps/plugins/shortcuts/shortcuts_view.c3
-rw-r--r--apps/plugins/sokoban.c1
-rw-r--r--apps/plugins/zxbox/zxbox_keyb.c2
18 files changed, 10 insertions, 32 deletions
diff --git a/apps/plugins/alarmclock.c b/apps/plugins/alarmclock.c
index 0afd7a1c13..604c9ceac4 100644
--- a/apps/plugins/alarmclock.c
+++ b/apps/plugins/alarmclock.c
@@ -124,7 +124,6 @@ static void pause(void)
124enum plugin_status plugin_start(const void* parameter) 124enum plugin_status plugin_start(const void* parameter)
125{ 125{
126 int button; 126 int button;
127 int i;
128 (void)parameter; 127 (void)parameter;
129 128
130 if (!can_play()) { 129 if (!can_play()) {
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
72void clock_draw_set_colors(void){ 72void 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
80void clock_draw_restore_colors(void){ 79void 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
155void load_settings(void){ 155void 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
181void save_settings(void){ 180void 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;
diff --git a/apps/plugins/demystify.c b/apps/plugins/demystify.c
index e8d4d350d6..81ac53cc6c 100644
--- a/apps/plugins/demystify.c
+++ b/apps/plugins/demystify.c
@@ -326,7 +326,6 @@ int plugin_main(void)
326 int action; 326 int action;
327 int sleep_time=DEFAULT_WAIT_TIME; 327 int sleep_time=DEFAULT_WAIT_TIME;
328 int nb_wanted_polygons=DEFAULT_NB_POLYGONS; 328 int nb_wanted_polygons=DEFAULT_NB_POLYGONS;
329 int i;
330 struct polygon_fifo polygons[NB_SCREENS]; 329 struct polygon_fifo polygons[NB_SCREENS];
331 struct polygon_move move[NB_SCREENS]; /* This describes the movement of the leading 330 struct polygon_move move[NB_SCREENS]; /* This describes the movement of the leading
332 polygon, the others just follow */ 331 polygon, the others just follow */
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c
index 3bff30d228..098dd27c8b 100644
--- a/apps/plugins/dice.c
+++ b/apps/plugins/dice.c
@@ -76,7 +76,7 @@ static bool dice_menu(struct dices* dice);
76/* plugin entry point */ 76/* plugin entry point */
77enum plugin_status plugin_start(const void* parameter) { 77enum plugin_status plugin_start(const void* parameter) {
78 (void)parameter; 78 (void)parameter;
79 int i, action; 79 int action;
80 80
81 dice_init(&dice); 81 dice_init(&dice);
82 rb->srand(*rb->current_tick); 82 rb->srand(*rb->current_tick);
diff --git a/apps/plugins/frotz/frotz.c b/apps/plugins/frotz/frotz.c
index 23da650706..b4ec8854d2 100644
--- a/apps/plugins/frotz/frotz.c
+++ b/apps/plugins/frotz/frotz.c
@@ -38,7 +38,6 @@ static void atexit_cleanup(void);
38 38
39enum plugin_status plugin_start(const void* parameter) 39enum plugin_status plugin_start(const void* parameter)
40{ 40{
41 int i;
42 char* ext; 41 char* ext;
43 42
44 atexit(atexit_cleanup); 43 atexit(atexit_cleanup);
diff --git a/apps/plugins/iriverify.c b/apps/plugins/iriverify.c
index 1109cde179..6c8ac2f201 100644
--- a/apps/plugins/iriverify.c
+++ b/apps/plugins/iriverify.c
@@ -134,7 +134,6 @@ enum plugin_status plugin_start(const void* parameter)
134{ 134{
135 char *buf; 135 char *buf;
136 int rc; 136 int rc;
137 int i;
138 if(!parameter) return PLUGIN_ERROR; 137 if(!parameter) return PLUGIN_ERROR;
139 filename = (char *)parameter; 138 filename = (char *)parameter;
140 139
diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c
index 08eeb2cce1..aa9defd1eb 100644
--- a/apps/plugins/jackpot.c
+++ b/apps/plugins/jackpot.c
@@ -119,9 +119,8 @@ static void jackpot_exit(void)
119 119
120static void jackpot_init(struct jackpot* game) 120static void jackpot_init(struct jackpot* game)
121{ 121{
122 int i,j;
123 game->money=20; 122 game->money=20;
124 for(i=0;i<NB_SLOTS;i++){ 123 for(int i=0;i<NB_SLOTS;i++){
125 game->slot_state[i]=(rb->rand()%NB_PICTURES)*PICTURE_ROTATION_STEPS; 124 game->slot_state[i]=(rb->rand()%NB_PICTURES)*PICTURE_ROTATION_STEPS;
126 FOR_NB_SCREENS(j) 125 FOR_NB_SCREENS(j)
127 game->state_y[j][i]=-1; 126 game->state_y[j][i]=-1;
@@ -254,11 +253,11 @@ static void jackpot_play_turn(struct jackpot* game)
254{ 253{
255 /* How many pattern? */ 254 /* How many pattern? */
256 int nb_turns[NB_SLOTS]; 255 int nb_turns[NB_SLOTS];
257 int i,d,gain,turns_remaining=0; 256 int gain,turns_remaining=0;
258 if(game->money<=0) 257 if(game->money<=0)
259 return; 258 return;
260 game->money--; 259 game->money--;
261 for(i=0;i<NB_SLOTS;i++) 260 for(int i=0;i<NB_SLOTS;i++)
262 { 261 {
263 nb_turns[i]=(rb->rand()%15+5)*PICTURE_ROTATION_STEPS; 262 nb_turns[i]=(rb->rand()%15+5)*PICTURE_ROTATION_STEPS;
264 turns_remaining+=nb_turns[i]; 263 turns_remaining+=nb_turns[i];
@@ -271,7 +270,7 @@ static void jackpot_play_turn(struct jackpot* game)
271 /* Jackpot Animation */ 270 /* Jackpot Animation */
272 while(turns_remaining>0) 271 while(turns_remaining>0)
273 { 272 {
274 for(i=0;i<NB_SLOTS;i++) 273 for(int i=0;i<NB_SLOTS;i++)
275 { 274 {
276 if(nb_turns[i]>0) 275 if(nb_turns[i]>0)
277 { 276 {
@@ -295,7 +294,7 @@ static void jackpot_play_turn(struct jackpot* game)
295 294
296enum plugin_status plugin_start(const void* parameter) 295enum plugin_status plugin_start(const void* parameter)
297{ 296{
298 int action, i; 297 int action;
299 struct jackpot game; 298 struct jackpot game;
300 (void)parameter; 299 (void)parameter;
301 atexit(jackpot_exit); 300 atexit(jackpot_exit);
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c
index f0b3e47728..ca275deb83 100644
--- a/apps/plugins/lrcplayer.c
+++ b/apps/plugins/lrcplayer.c
@@ -1600,7 +1600,7 @@ static void display_state(void)
1600 info = "(no info)"; 1600 info = "(no info)";
1601 } 1601 }
1602 1602
1603 int i, w, h; 1603 int w, h;
1604 struct screen* display; 1604 struct screen* display;
1605 FOR_NB_SCREENS(i) 1605 FOR_NB_SCREENS(i)
1606 { 1606 {
@@ -1640,7 +1640,7 @@ static void display_time(void)
1640 current.elapsed/60000, (current.elapsed/1000)%60, 1640 current.elapsed/60000, (current.elapsed/1000)%60,
1641 current.length/60000, (current.length)/1000%60); 1641 current.length/60000, (current.length)/1000%60);
1642#ifdef HAVE_LCD_BITMAP 1642#ifdef HAVE_LCD_BITMAP
1643 int y = (prefs.display_title? font_ui_height:0), i; 1643 int y = (prefs.display_title? font_ui_height:0);
1644 FOR_NB_SCREENS(i) 1644 FOR_NB_SCREENS(i)
1645 { 1645 {
1646 struct screen* display = rb->screens[i]; 1646 struct screen* display = rb->screens[i];
@@ -1842,7 +1842,7 @@ static int display_lrc_line(struct lrc_line *lrc_line, int ypos, int i)
1842static void display_lrcs(void) 1842static void display_lrcs(void)
1843{ 1843{
1844 long time_start, time_end, rin, len; 1844 long time_start, time_end, rin, len;
1845 int i, nline[NB_SCREENS] = {0}; 1845 int nline[NB_SCREENS] = {0};
1846 struct lrc_line *lrc_center = current.ll_head; 1846 struct lrc_line *lrc_center = current.ll_head;
1847 1847
1848 if (!lrc_center) return; 1848 if (!lrc_center) return;
@@ -2773,7 +2773,6 @@ static int handle_button(void)
2773static int lrc_main(void) 2773static int lrc_main(void)
2774{ 2774{
2775 int ret = LRC_GOTO_MAIN; 2775 int ret = LRC_GOTO_MAIN;
2776 int i;
2777 long id3_timeout = 0; 2776 long id3_timeout = 0;
2778 bool update_display_state = true; 2777 bool update_display_state = true;
2779 2778
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c
index b093a6439d..bcdb4ff553 100644
--- a/apps/plugins/maze.c
+++ b/apps/plugins/maze.c
@@ -495,7 +495,6 @@ enum plugin_status plugin_start(const void* parameter)
495 int lastbutton = BUTTON_NONE; 495 int lastbutton = BUTTON_NONE;
496#endif 496#endif
497 int quit = 0; 497 int quit = 0;
498 int i;
499 struct maze maze; 498 struct maze maze;
500 (void)parameter; 499 (void)parameter;
501 500
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c
index 4653e9719f..2db7f7799b 100644
--- a/apps/plugins/metronome.c
+++ b/apps/plugins/metronome.c
@@ -781,7 +781,6 @@ static void metronome_draw(struct screen* display)
781 781
782static void draw_display(void) 782static void draw_display(void)
783{ 783{
784 int i;
785 FOR_NB_SCREENS(i) 784 FOR_NB_SCREENS(i)
786 metronome_draw(rb->screens[i]); 785 metronome_draw(rb->screens[i]);
787} 786}
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index feae0f7419..c38c6d5ec5 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -281,9 +281,6 @@ static const char * get_props(int selected_item, void* data,
281enum plugin_status plugin_start(const void* parameter) 281enum plugin_status plugin_start(const void* parameter)
282{ 282{
283 struct gui_synclist properties_lists; 283 struct gui_synclist properties_lists;
284#ifdef HAVE_LCD_BITMAP
285 int i;
286#endif
287 int button; 284 int button;
288 bool quit = false, usb = false; 285 bool quit = false, usb = false;
289 char file[MAX_PATH]; 286 char file[MAX_PATH];
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c
index 18899644cc..f459aa0776 100644
--- a/apps/plugins/random_folder_advance_config.c
+++ b/apps/plugins/random_folder_advance_config.c
@@ -46,7 +46,6 @@ struct file_format *list = NULL;
46static void update_screen(bool clear) 46static void update_screen(bool clear)
47{ 47{
48 char buf[15]; 48 char buf[15];
49 int i;
50 49
51 rb->snprintf(buf,sizeof(buf),"Folders: %d",dirs_count); 50 rb->snprintf(buf,sizeof(buf),"Folders: %d",dirs_count);
52 FOR_NB_SCREENS(i) 51 FOR_NB_SCREENS(i)
diff --git a/apps/plugins/search.c b/apps/plugins/search.c
index 76d8711feb..831fe70cd4 100644
--- a/apps/plugins/search.c
+++ b/apps/plugins/search.c
@@ -103,7 +103,6 @@ static void search_buffer(void){
103} 103}
104 104
105static void clear_display(void){ 105static void clear_display(void){
106 int i;
107 FOR_NB_SCREENS(i){ 106 FOR_NB_SCREENS(i){
108 rb->screens[i]->clear_display(); 107 rb->screens[i]->clear_display();
109 } 108 }
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c
index 469241fd84..c9a4655341 100644
--- a/apps/plugins/shortcuts/shortcuts_view.c
+++ b/apps/plugins/shortcuts/shortcuts_view.c
@@ -195,9 +195,6 @@ bool ends_with(char *string, char *suffix)
195 195
196enum plugin_status plugin_start(const void* void_parameter) 196enum plugin_status plugin_start(const void* void_parameter)
197{ 197{
198#ifdef HAVE_LCD_BITMAP
199 int i;
200#endif
201 bool leave_loop; 198 bool leave_loop;
202 199
203 /* This is a viewer, so a parameter must have been specified */ 200 /* This is a viewer, so a parameter must have been specified */
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index d161b29a10..c5ba706047 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -1383,7 +1383,6 @@ static int sokoban_menu(void)
1383{ 1383{
1384 int button; 1384 int button;
1385 int selection = 0; 1385 int selection = 0;
1386 int i;
1387 bool menu_quit; 1386 bool menu_quit;
1388 int start_selected = 0; 1387 int start_selected = 0;
1389 int prev_level = current_info.level.index; 1388 int prev_level = current_info.level.index;
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c
index f434928680..92a56a8a4d 100644
--- a/apps/plugins/zxbox/zxbox_keyb.c
+++ b/apps/plugins/zxbox/zxbox_keyb.c
@@ -283,7 +283,7 @@ struct keyboard_parameters param[NB_SCREENS];
283int zx_kbd_input(char* text/*, int buflen*/) 283int zx_kbd_input(char* text/*, int buflen*/)
284{ 284{
285 bool done = false; 285 bool done = false;
286 int i, j, k, w, l; 286 int i, j, k, w;
287 int text_w = 0; 287 int text_w = 0;
288#ifdef ZX_WRITE_OUT_TEXT 288#ifdef ZX_WRITE_OUT_TEXT
289 int editpos, len_utf8; 289 int editpos, len_utf8;