list: Make list_concat argument const

This commit is contained in:
Kenny Levinsen 2020-08-03 00:56:27 +02:00
parent a003e92600
commit 6d031426aa
2 changed files with 2 additions and 2 deletions

View file

@ -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;