You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2021/05/27 08:19:54 UTC
[mynewt-nimble] 16/31: mesh: Remove unsigned typing to returns in
heartbeat
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 5f60008a2b6d631410062ee6f3d1aca12a742256
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Mon Mar 29 14:01:21 2021 +0200
mesh: Remove unsigned typing to returns in heartbeat
Removes U-suffix from signed return codes in heartbeat.c.
this is port of dc6e880eab8526bd6ba9ab8bca3f6e2a299ff98e
---
nimble/host/mesh/src/heartbeat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/mesh/src/heartbeat.c b/nimble/host/mesh/src/heartbeat.c
index 3ba7ae3..09d6459 100644
--- a/nimble/host/mesh/src/heartbeat.c
+++ b/nimble/host/mesh/src/heartbeat.c
@@ -91,7 +91,7 @@ static int heartbeat_send(const struct bt_mesh_send_cb *cb, void *cb_data)
* removed.
*/
if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) {
- return 0U;
+ return 0;
}
hb.init_ttl = pub.ttl;