summaryrefslogtreecommitdiff
path: root/apps/screens.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/screens.c
parente6b23a8f049a89f9f6254a7fa186d33dc65b0ba3 (diff)
downloadrockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.tar.gz
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/screens.c')
-rw-r--r--apps/screens.c6
1 files changed, 3 insertions, 3 deletions
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)
830} 830}
831 831
832 832
833bool view_runtime(void) 833int view_runtime(void)
834{ 834{
835 static const char *lines[]={ID2P(LANG_CLEAR_TIME)}; 835 static const char *lines[]={ID2P(LANG_CLEAR_TIME)};
836 static const struct text_message message={lines, 1}; 836 static const struct text_message message={lines, 1};
@@ -869,9 +869,9 @@ bool view_runtime(void)
869 } 869 }
870 } 870 }
871 if(default_event_handler(action) == SYS_USB_CONNECTED) 871 if(default_event_handler(action) == SYS_USB_CONNECTED)
872 return true; 872 return 1;
873 } 873 }
874 return false; 874 return 0;
875} 875}
876 876
877#ifdef HAVE_TOUCHSCREEN 877#ifdef HAVE_TOUCHSCREEN