aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/list.c2
-rw-r--r--include/list.h2
2 files changed, 2 insertions, 2 deletions
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;
diff --git a/include/list.h b/include/list.h
index faeadd2..012f216 100644
--- a/include/list.h
+++ b/include/list.h
@@ -14,7 +14,7 @@ void list_free(struct list *list);
void list_add(struct list *list, void *item);
void list_insert(struct list *list, size_t index, void *item);
void list_del(struct list *list, size_t index);
-void list_concat(struct list *list, struct list *source);
+void list_concat(struct list *list, const struct list *source);
void list_truncate(struct list *list);
void *list_pop_front(struct list *list);
void *list_pop_back(struct list *list);