From 5a8d25462f1340ccaa4a354328cfcdc6f89c1815 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Fri, 24 Nov 2023 13:43:24 +0100 Subject: [PATCH] tests/automated: fix include headers --- include/nanocbor/nanocbor.h | 4 ++-- tests/automated/test_decoder.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/nanocbor/nanocbor.h b/include/nanocbor/nanocbor.h index 218f920..d773084 100644 --- a/include/nanocbor/nanocbor.h +++ b/include/nanocbor/nanocbor.h @@ -30,8 +30,8 @@ #ifndef NANOCBOR_NANOCBOR_H #define NANOCBOR_NANOCBOR_H -#include #include +#include #include #ifdef __cplusplus @@ -448,7 +448,7 @@ int nanocbor_get_tstr(nanocbor_value_t *cvalue, const uint8_t **buf, * @return NANOCBOR_OK if @p key was found * @return negative on error / not found */ -int nanocbor_get_key_tstr(nanocbor_value_t *start, const char *key, +int nanocbor_get_key_tstr(const nanocbor_value_t *start, const char *key, nanocbor_value_t *value); /** diff --git a/tests/automated/test_decoder.c b/tests/automated/test_decoder.c index 3f156c1..a441319 100644 --- a/tests/automated/test_decoder.c +++ b/tests/automated/test_decoder.c @@ -5,6 +5,8 @@ #include "nanocbor/nanocbor.h" #include "test.h" #include +#include +#include /* NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers) */