# HG changeset patch # User Matti Hamalainen # Date 1673250553 -7200 # Node ID 3091fd1987e9db2bf8887a3aa8fc5e7ace5b5e9e # Parent 56594b498180e7701f5ebb214e6c8e4d43ec3201 Rename function argument. diff -r 56594b498180 -r 3091fd1987e9 th_datastruct.c --- 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; } diff -r 56594b498180 -r 3091fd1987e9 th_datastruct.h --- 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));