This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 5fbb666 ble_gap: fix warning about implicit cast form pointer to int
5fbb666 is described below
commit 5fbb6660a433217b8eaf1b95de410379f868616c
Author: Matias N <[email protected]>
AuthorDate: Fri Dec 18 14:50:56 2020 -0300
ble_gap: fix warning about implicit cast form pointer to int
---
nimble/host/src/ble_gap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 1631cf4..bbedc31 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -745,7 +745,7 @@ ble_gap_has_client(struct ble_gap_master_state *out_state)
return 0;
}
- return out_state->cb;
+ return out_state->cb != NULL;
}
static void