fix warnings while building along with serial recovery
Following warnings were fixed within this patch:
'isspace' macro should take an int value
function 'bs_reset' should return void
redefinition of 'MBEDTLS_CONFIG_FILE' macro while
it is already defined by the zephyr build system.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c
index e23040c..f4c6087 100644
--- a/boot/boot_serial/src/boot_serial.c
+++ b/boot/boot_serial/src/boot_serial.c
@@ -118,7 +118,7 @@
ptr += strlen(name);
while (*ptr != '\0') {
- if (*ptr != ':' && !isspace(*ptr)) {
+ if (*ptr != ':' && !isspace((int)*ptr)) {
break;
}
++ptr;
@@ -292,7 +292,7 @@
* Reset, and (presumably) boot to newly uploaded image. Flush console
* before restarting.
*/
-static int
+static void
bs_reset(char *buf, int len)
{
cbor_encoder_create_map(&bs_root, &bs_rsp, CborIndefiniteLength);