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) */