diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/blackjack.c | 2 | ||||
| -rw-r--r-- | apps/plugins/random_folder_advance_config.c | 2 | ||||
| -rw-r--r-- | apps/plugins/starfield.c | 2 | ||||
| -rw-r--r-- | apps/plugins/stats.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index 9096673..a7876c6 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c @@ -701,7 +701,7 @@ static void update_total(struct game_context* bj) { static signed int check_for_aces(struct card temp_cards[], unsigned int size) { unsigned int i; for(i = 0; i < size; i++) { - if (temp_cards[i].is_soft_ace == true) + if (temp_cards[i].is_soft_ace) return i; } return -1; diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 36b9ebf..5f83798 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c @@ -70,7 +70,7 @@ void traversedir(char* location, char* name) if (dir) { entry = rb->readdir(dir); while (entry) { - if (abort == true) + if (abort) break; /* Skip .. and . */ if (entry->d_name[0] == '.') diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 0da3305..01d0acf 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c @@ -389,7 +389,7 @@ int plugin_main(void) ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F))) /* This will make the stars pulse to the music */ - if(pulse==true){ + if(pulse){ /* Get the peaks. ( Borrowed from vu_meter ) */ #if (CONFIG_CODEC == SWCODEC) diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index d3cf9dc..b928c0c 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c @@ -164,7 +164,7 @@ void traversedir(char* location, char* name) if (dir) { entry = rb->readdir(dir); while (entry) { - if (abort == true) + if (abort) break; /* Skip .. and . */ if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) @@ -227,7 +227,7 @@ enum plugin_status plugin_start(const void* parameter) lasttick = *rb->current_tick; traversedir("", ""); - if (abort == true) { + if (abort) { rb->splash(HZ, "Aborted"); return PLUGIN_OK; } |