From 7ba4796846cf6942c8ed244dac223c66be03be55 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 22 May 2018 11:15:52 +0200 Subject: [PATCH] porting: Fix ble_npl_eventq_is_empty return value --- nimble/include/nimble/nimble_npl.h | 2 +- porting/npl/freertos/include/nimble/nimble_npl_os.h | 2 +- porting/npl/mynewt/include/nimble/nimble_npl_os.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nimble/include/nimble/nimble_npl.h b/nimble/include/nimble/nimble_npl.h index b36a9b54e..fd1867ac0 100644 --- a/nimble/include/nimble/nimble_npl.h +++ b/nimble/include/nimble/nimble_npl.h @@ -87,7 +87,7 @@ void *ble_npl_event_get_arg(struct ble_npl_event *ev); void ble_npl_event_set_arg(struct ble_npl_event *ev, void *arg); -int ble_npl_eventq_is_empty(struct ble_npl_eventq *evq); +bool ble_npl_eventq_is_empty(struct ble_npl_eventq *evq); /* * Mutexes diff --git a/porting/npl/freertos/include/nimble/nimble_npl_os.h b/porting/npl/freertos/include/nimble/nimble_npl_os.h index c85a60211..9c0b5849b 100644 --- a/porting/npl/freertos/include/nimble/nimble_npl_os.h +++ b/porting/npl/freertos/include/nimble/nimble_npl_os.h @@ -128,7 +128,7 @@ ble_npl_eventq_run(struct ble_npl_eventq *evq) ev->fn(ev); } -static inline int +static inline bool ble_npl_eventq_is_empty(struct ble_npl_eventq *evq) { return xQueueIsQueueEmptyFromISR(evq->q); diff --git a/porting/npl/mynewt/include/nimble/nimble_npl_os.h b/porting/npl/mynewt/include/nimble/nimble_npl_os.h index 2f7a79c5d..de7df5cd4 100644 --- a/porting/npl/mynewt/include/nimble/nimble_npl_os.h +++ b/porting/npl/mynewt/include/nimble/nimble_npl_os.h @@ -115,7 +115,7 @@ ble_npl_eventq_run(struct ble_npl_eventq *evq) os_eventq_run(&evq->evq); } -static inline int +static inline bool ble_npl_eventq_is_empty(struct ble_npl_eventq *evq) { return STAILQ_EMPTY(&evq->evq.evq_list);