From 7c2232c3af7edf93a6caa71ffc969916b4f88c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Fri, 4 Oct 2019 22:25:25 +0800 Subject: Rename the catalog free function and remove unnecessary lines --- product.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'product.c') diff --git a/product.c b/product.c index 6c30834..33286cd 100644 --- a/product.c +++ b/product.c @@ -1,10 +1,7 @@ #include -#include "request.h" #include "icclient/product.h" -typedef struct icclient_catalog icclient_catalog; - -void icclient_product_freecatalog(icclient_catalog *catalog) +void icclient_catalog_free(struct icclient_catalog *catalog) { for (size_t i = 0; i < catalog->length; i++) { struct icclient_product *product = catalog->products[i]; -- cgit v1.2.3