summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:17:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:17:08 +0000
commitd2000a91783328ba7be454a82b4d9572fe1dacf0 (patch)
tree46dfff5cde036c688200fe78e4bf26f582486b15 /apps
parentc78d55a31147fcd0775b076c182cdcb265426013 (diff)
downloadrockbox-d2000a91783328ba7be454a82b4d9572fe1dacf0.tar.gz
rockbox-d2000a91783328ba7be454a82b4d9572fe1dacf0.tar.bz2
rockbox-d2000a91783328ba7be454a82b4d9572fe1dacf0.zip
radio_screen() return value is unused -> void
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28113 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/radio/radio.c16
-rw-r--r--apps/radio/radio.h2
2 files changed, 3 insertions, 15 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index e5badb10a8..ec816c6a54 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -387,10 +387,9 @@ void talk_freq(int freq, bool enqueue)
}
-int radio_screen(void)
+void radio_screen(void)
{
bool done = false;
- int ret_val = GO_TO_ROOT;
int button;
int i;
bool stereo = false, last_stereo = false;
@@ -403,7 +402,6 @@ int radio_screen(void)
unsigned long rec_lastclick = 0;
#endif
#if CONFIG_CODEC != SWCODEC
- bool have_recorded = false;
int timeout = current_tick + HZ/10;
unsigned int last_seconds = 0;
#if !defined(SIMULATOR)
@@ -433,9 +431,7 @@ int radio_screen(void)
#ifndef SIMULATOR
#if CONFIG_CODEC != SWCODEC
- if(rec_create_directory() > 0)
- have_recorded = true;
-
+ rec_create_directory();
audio_init_recording(talk_get_bufsize());
sound_settings_apply();
@@ -558,7 +554,6 @@ int radio_screen(void)
}
else
{
- have_recorded = true;
rec_command(RECORDING_CMD_START);
update_type = SKIN_REFRESH_ALL;
}
@@ -574,7 +569,6 @@ int radio_screen(void)
#endif
keep_playing = true;
done = true;
- ret_val = GO_TO_ROOT;
if(presets_have_changed())
{
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
@@ -741,7 +735,6 @@ int radio_screen(void)
#endif
keep_playing = false;
done = true;
- ret_val = GO_TO_ROOT;
if(presets_have_changed())
{
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
@@ -884,11 +877,6 @@ int radio_screen(void)
#endif
fms_fix_displays(FMS_EXIT);
in_screen = false;
-#if CONFIG_CODEC != SWCODEC
- return have_recorded;
-#else
- return false;
-#endif
} /* radio_screen */
void toggle_mono_mode(bool mono)
diff --git a/apps/radio/radio.h b/apps/radio/radio.h
index daeaee9ca7..76615e39e7 100644
--- a/apps/radio/radio.h
+++ b/apps/radio/radio.h
@@ -36,7 +36,7 @@ enum {
void radio_load_presets(char *filename);
void radio_save_presets(void);
void radio_init(void) INIT_ATTR;
-int radio_screen(void);
+void radio_screen(void);
void radio_start(void);
void radio_pause(void);
void radio_stop(void);