Commit 268cdd0e authored by Andrzej Puzdrowski's avatar Andrzej Puzdrowski Committed by Fabio Utzig
Browse files

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: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent 8a67dba3
Loading
Loading
Loading
Loading
+2 −2
Changes for boot/boot_serial/src/boot_serial.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ bs_find_val(char *buf, char *name)
    ptr += strlen(name);

    while (*ptr != '\0') {
        if (*ptr != ':' && !isspace(*ptr)) {
        if (*ptr != ':' && !isspace((int)*ptr)) {
            break;
        }
        ++ptr;
@@ -292,7 +292,7 @@ bs_echo_ctl(char *buf, int len)
 * 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);
−2
Changes for boot/zephyr/os.c: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@
#include "os/os_heap.h"

#ifdef MCUBOOT_USE_MBED_TLS
#define MBEDTLS_CONFIG_FILE CONFIG_MBEDTLS_CFG_FILE

#include <mbedtls/platform.h>
#include <mbedtls/memory_buffer_alloc.h>
@@ -45,7 +44,6 @@ void os_heap_init(void)
    mbedtls_memory_buffer_alloc_init(mempool, sizeof(mempool));
}
#else
#define MBEDTLS_CONFIG_FILE MCUBOOT_MBEDTLS_CFG_FILE
void os_heap_init(void)
{
}