Skip to content

Commit

Permalink
Bluetooth: Mesh: Fix string signedness issue
Browse files Browse the repository at this point in the history
Some compilers (like icx) may complain about unsigned vs signed
strings.

Fixes #3985

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
jhedberg authored and Anas Nashif committed Oct 19, 2017
1 parent 051a540 commit 92f5487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subsys/bluetooth/host/mesh/prov.c
Expand Up @@ -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);

Expand Down

0 comments on commit 92f5487

Please sign in to comment.