From f33ace6b0376b376a34765e7ec1fa7f89077afdd Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 6 Mar 2022 21:48:00 +0800 Subject: [PATCH] update c samples --- samples/client/petstore/c/include/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/client/petstore/c/include/list.h b/samples/client/petstore/c/include/list.h index 96c5832b02b..96384d049b3 100644 --- a/samples/client/petstore/c/include/list.h +++ b/samples/client/petstore/c/include/list.h @@ -23,8 +23,8 @@ typedef struct list_t { #define list_ForEach(element, list) for(element = (list != NULL) ? (list)->firstEntry : NULL; element != NULL; element = element->nextListEntry) -list_t* List(); -void list_freeListList(list_t* listToFree); +list_t* list_createList(); +void list_freeList(list_t* listToFree); void list_addElement(list_t* list, void* dataToAddInList); listEntry_t* list_getElementAt(list_t *list, long indexOfElement);