From dd40c46d50f9f22643b828e80783d3576b9c1d50 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 15 Oct 2018 23:04:04 -0400 Subject: 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 --- apps/screens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index 0334329b5d..e203b446cf 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -830,7 +830,7 @@ static int runtime_speak_data(int selected_item, void* data) } -bool view_runtime(void) +int view_runtime(void) { static const char *lines[]={ID2P(LANG_CLEAR_TIME)}; static const struct text_message message={lines, 1}; @@ -869,9 +869,9 @@ bool view_runtime(void) } } if(default_event_handler(action) == SYS_USB_CONNECTED) - return true; + return 1; } - return false; + return 0; } #ifdef HAVE_TOUCHSCREEN -- cgit v1.2.3