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/tagtree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/tagtree.c') diff --git a/apps/tagtree.c b/apps/tagtree.c index ba27c84f6a..c188a900fa 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -967,7 +967,7 @@ static void tagtree_track_finish_event(unsigned short id, void *ev_data) #endif } -bool tagtree_export(void) +int tagtree_export(void) { struct tagcache_search tcs; @@ -977,10 +977,10 @@ bool tagtree_export(void) splash(HZ*2, ID2P(LANG_FAILED)); } - return false; + return 0; } -bool tagtree_import(void) +int tagtree_import(void) { splash(0, ID2P(LANG_WAIT)); if (!tagcache_import_changelog()) @@ -988,7 +988,7 @@ bool tagtree_import(void) splash(HZ*2, ID2P(LANG_FAILED)); } - return false; + return 0; } static bool parse_menu(const char *filename); -- cgit v1.2.3