aboutsummaryrefslogtreecommitdiff
path: root/contrib/libcbor/src/cbor/internal/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libcbor/src/cbor/internal/stack.c')
-rw-r--r--contrib/libcbor/src/cbor/internal/stack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libcbor/src/cbor/internal/stack.c b/contrib/libcbor/src/cbor/internal/stack.c
index 79c9e5e5297e..2db03cbbf081 100644
--- a/contrib/libcbor/src/cbor/internal/stack.c
+++ b/contrib/libcbor/src/cbor/internal/stack.c
@@ -7,14 +7,14 @@
#include "stack.h"
-struct _cbor_stack _cbor_stack_init() {
+struct _cbor_stack _cbor_stack_init(void) {
return (struct _cbor_stack){.top = NULL, .size = 0};
}
void _cbor_stack_pop(struct _cbor_stack *stack) {
struct _cbor_stack_record *top = stack->top;
stack->top = stack->top->lower;
- _CBOR_FREE(top);
+ _cbor_free(top);
stack->size--;
}
@@ -23,7 +23,7 @@ struct _cbor_stack_record *_cbor_stack_push(struct _cbor_stack *stack,
size_t subitems) {
if (stack->size == CBOR_MAX_STACK_SIZE) return NULL;
struct _cbor_stack_record *new_top =
- _CBOR_MALLOC(sizeof(struct _cbor_stack_record));
+ _cbor_malloc(sizeof(struct _cbor_stack_record));
if (new_top == NULL) return NULL;
*new_top = (struct _cbor_stack_record){stack->top, item, subitems};