summaryrefslogtreecommitdiff
path: root/src/libecbor/ecbor_encoder.c
diff options
context:
space:
mode:
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;