changeset 751:3091fd1987e9

Rename function argument.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Jan 2023 09:49:13 +0200
parents 56594b498180
children 3710c117b7c7
files th_datastruct.c th_datastruct.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
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;
 }
--- a/th_datastruct.h	Fri Dec 30 09:12:47 2022 +0200
+++ b/th_datastruct.h	Mon Jan 09 09:49:13 2023 +0200
@@ -129,7 +129,7 @@
 
 int     th_ptrlist_init(th_ptrlist_t *list, const size_t ninitial, const size_t ngrow);
 int     th_ptrlist_new(th_ptrlist_t **list, const size_t ninitial, const size_t ngrow);
-int     th_ptrlist_append(th_ptrlist_t *list, void *str);
+int     th_ptrlist_append(th_ptrlist_t *list, void *data);
 void    th_ptrlist_free(th_ptrlist_t *list, void (*mdeallocator)(void *data));