changeset 758:72fb5ce9086a

Fix constness.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 01 Feb 2023 16:43:36 +0200
parents 2ab2fece83ea
children 618c7fa3a4f8
files th_datastruct.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_datastruct.c	Wed Feb 01 14:09:25 2023 +0200
+++ b/th_datastruct.c	Wed Feb 01 16:43:36 2023 +0200
@@ -205,7 +205,7 @@
 
 size_t th_llist_length_slow(const th_llist_t *list)
 {
-    th_llist_t *curr = list;
+    const th_llist_t *curr = list;
     size_t i;
 
     for (i = 0; curr != NULL; curr = curr->next, i++);