From 6d031426aad4bb58b84a8dd55df3d2e1559f934b Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 00:56:27 +0200 Subject: list: Make list_concat argument const --- common/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/list.c b/common/list.c index d38daa0..557e0dc 100644 --- a/common/list.c +++ b/common/list.c @@ -51,7 +51,7 @@ size_t list_find(struct list *list, const void *item) { return -1; } -void list_concat(struct list *list, struct list *source) { +void list_concat(struct list *list, const struct list *source) { if (list->length + source->length > list->capacity) { while (list->length + source->length > list->capacity) { list->capacity *= 2; -- cgit v1.2.3