From 3341439f982304b6d509fdccccb24eb91334d702 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 26 Sep 2017 11:26:13 +0300 Subject: [PATCH] Bluetooth: Mesh: Fix string signedness issue Some compilers (like icx) may complain about unsigned vs signed strings. Fixes #3985 Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/mesh/prov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/mesh/prov.c b/subsys/bluetooth/host/mesh/prov.c index b60e73ae762c7e..c280233239ee58 100644 --- a/subsys/bluetooth/host/mesh/prov.c +++ b/subsys/bluetooth/host/mesh/prov.c @@ -617,7 +617,8 @@ static int prov_auth(u8_t method, u8_t action, u8_t size) } if (output == BT_MESH_DISPLAY_STRING) { - u8_t i, str[9]; + char str[9]; + u8_t i; bt_rand(str, size);