list: Make list_concat argument const
This commit is contained in:
parent
a003e92600
commit
6d031426aa
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue