comparison 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
comparison
equal deleted inserted replaced
750:56594b498180 751:3091fd1987e9
626 626
627 return THERR_OK; 627 return THERR_OK;
628 } 628 }
629 629
630 630
631 int th_ptrlist_append(th_ptrlist_t *list, void *str) 631 int th_ptrlist_append(th_ptrlist_t *list, void *data)
632 { 632 {
633 if (list->nitems + 1 >= list->nallocated) 633 if (list->nitems + 1 >= list->nallocated)
634 { 634 {
635 list->nallocated += list->ngrow; 635 list->nallocated += list->ngrow;
636 if ((list->items = th_realloc(list->items, list->nallocated * sizeof(void *))) == NULL) 636 if ((list->items = th_realloc(list->items, list->nallocated * sizeof(void *))) == NULL)
637 return THERR_MALLOC; 637 return THERR_MALLOC;
638 } 638 }
639 639
640 list->items[list->nitems++] = str; 640 list->items[list->nitems++] = data;
641 641
642 return THERR_OK; 642 return THERR_OK;
643 } 643 }
644 644
645 645