diff th_datastruct.c @ 751:3091fd1987e9

Rename function argument.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Jan 2023 09:49:13 +0200
parents ca837a4417f5
children 3710c117b7c7
line wrap: on
line diff
--- a/th_datastruct.c	Fri Dec 30 09:12:47 2022 +0200
+++ b/th_datastruct.c	Mon Jan 09 09:49:13 2023 +0200
@@ -628,7 +628,7 @@
 }
 
 
-int th_ptrlist_append(th_ptrlist_t *list, void *str)
+int th_ptrlist_append(th_ptrlist_t *list, void *data)
 {
     if (list->nitems + 1 >= list->nallocated)
     {
@@ -637,7 +637,7 @@
             return THERR_MALLOC;
     }
 
-    list->items[list->nitems++] = str;
+    list->items[list->nitems++] = data;
 
     return THERR_OK;
 }