summaryrefslogtreecommitdiffstats
path: root/apps/alarm_menu.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-15 23:04:04 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-18 00:06:31 +0200
commitdd40c46d50f9f22643b828e80783d3576b9c1d50 (patch)
treeb9700f7cbe53bb10e89d91b0c3cf1fea686eb813 /apps/alarm_menu.c
parente6b23a8f049a89f9f6254a7fa186d33dc65b0ba3 (diff)
downloadrockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.tar.gz
rockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.tar.bz2
rockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.zip
Fix menu warnings
change offending bool return to int warning: cast between incompatible function types from '_Bool (*)(void)' to 'int (*)(void)' [-Wcast-function-type] forgot to remove -- typedef int (*menu_function)(void); Change-Id: Ie4c8d3ddb0fb7843c4ec584203350d658d6bee3e
Diffstat (limited to 'apps/alarm_menu.c')
-rw-r--r--apps/alarm_menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/alarm_menu.c b/apps/alarm_menu.c
index 12bc03ca20..497747bd7b 100644
--- a/apps/alarm_menu.c
+++ b/apps/alarm_menu.c
@@ -50,7 +50,7 @@ static void speak_time(int hours, int minutes, bool speak_hours, bool enqueue)
}
}
-bool alarm_screen(void)
+int alarm_screen(void)
{
int h, m;
bool done = false;
@@ -188,10 +188,10 @@ bool alarm_screen(void)
if(default_event_handler(button) == SYS_USB_CONNECTED)
{
rtc_enable_alarm(false);
- return true;
+ return 1;
}
break;
}
}
- return false;
+ return 0;
}