From 7c37eaea3ab0513385ccf1a1641b846b79fc6b8e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 4 May 2020 22:13:12 +0200 Subject: [PATCH] corefoundation: fix return type for btstack_run_loop_corefoundation_remove_timer --- platform/corefoundation/btstack_run_loop_corefoundation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/corefoundation/btstack_run_loop_corefoundation.m b/platform/corefoundation/btstack_run_loop_corefoundation.m index 8e0e820b8..9ee3b1c1e 100644 --- a/platform/corefoundation/btstack_run_loop_corefoundation.m +++ b/platform/corefoundation/btstack_run_loop_corefoundation.m @@ -184,7 +184,7 @@ static void btstack_run_loop_corefoundation_add_timer(btstack_timer_source_t * t CFRunLoopAddTimer(CFRunLoopGetCurrent(), timerRef, kCFRunLoopCommonModes); } -static int btstack_run_loop_corefoundation_remove_timer(btstack_timer_source_t * ts){ +static bool btstack_run_loop_corefoundation_remove_timer(btstack_timer_source_t * ts){ // printf("btstack_run_loop_corefoundation_remove_timer %x -> %x\n", (int) ts, (int) ts->item.next); if (ts->item.next != NULL) { CFRunLoopTimerInvalidate((CFRunLoopTimerRef) ts->item.next); // also removes timer from run loops + releases it