Skip to content

Commit

Permalink
tests/automated: fix include headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bergzand committed Nov 24, 2023
1 parent 4ad4914 commit 5a8d254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nanocbor/nanocbor.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#ifndef NANOCBOR_NANOCBOR_H
#define NANOCBOR_NANOCBOR_H

#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

#ifdef __cplusplus
Expand Down Expand Up @@ -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);

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/automated/test_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "nanocbor/nanocbor.h"
#include "test.h"
#include <CUnit/CUnit.h>
#include <stdbool.h>
#include <stdlib.h>

/* NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers) */

Expand Down

0 comments on commit 5a8d254

Please sign in to comment.