summaryrefslogtreecommitdiff
path: root/src/libecbor/ecbor_encoder.c
diff options
context:
space:
mode:
authorVasile Vilvoiu <vasi@vilvoiu.ro>2021-11-28 19:11:31 +0200
committerVasile Vilvoiu <vasi@vilvoiu.ro>2021-11-28 19:11:31 +0200
commit31f098fafa70898629e0d2cb1cd1d76f2655e60e (patch)
treeb3842f34bd289e708df0ef96355e0323ae36cb7b /src/libecbor/ecbor_encoder.c
parentb643b7eec3958c2e7eb807bcf6fc899f9623a343 (diff)
Const pointers for str/bstr builders.
Diffstat (limited to 'src/libecbor/ecbor_encoder.c')
-rw-r--r--src/libecbor/ecbor_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libecbor/ecbor_encoder.c b/src/libecbor/ecbor_encoder.c
index 5b5a9c9..43cb213 100644
--- a/src/libecbor/ecbor_encoder.c
+++ b/src/libecbor/ecbor_encoder.c
@@ -404,7 +404,7 @@ ecbor_uint (uint64_t value)
}
ecbor_item_t
-ecbor_bstr (uint8_t *bstr, size_t length)
+ecbor_bstr (const uint8_t *bstr, size_t length)
{
ecbor_item_t r = null_item;
r.type = ECBOR_TYPE_BSTR;
@@ -414,7 +414,7 @@ ecbor_bstr (uint8_t *bstr, size_t length)
}
ecbor_item_t
-ecbor_str (char *str, size_t length)
+ecbor_str (const char *str, size_t length)
{
ecbor_item_t r = null_item;
r.type = ECBOR_TYPE_STR;