diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 00:56:27 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 00:56:27 +0200 |
commit | 6d031426aad4bb58b84a8dd55df3d2e1559f934b (patch) | |
tree | a3697dd7257359402abbdf49ae25097aee79820d /common | |
parent | a003e926001e42f01c257028df4ee294c8d23639 (diff) | |
download | seatd-6d031426aad4bb58b84a8dd55df3d2e1559f934b.tar.xz |
list: Make list_concat argument const
Diffstat (limited to 'common')
-rw-r--r-- | common/list.c | 2 |
1 files changed, 1 insertions, 1 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; |