summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-04 22:25:25 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-04 22:25:25 +0800
commit7c2232c3af7edf93a6caa71ffc969916b4f88c4a (patch)
treec648e0eedc4e7c074036d4d8e0f1e8d84426eee4
parentcb523761caf60fc847fb666a7405b3b3b18c9550 (diff)
Rename the catalog free function
and remove unnecessary lines
-rw-r--r--icclient/product.h2
-rw-r--r--product.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/icclient/product.h b/icclient/product.h
index 6b2b890..0b0e509 100644
--- a/icclient/product.h
+++ b/icclient/product.h
@@ -15,7 +15,7 @@ struct icclient_catalog {
extern "C" {
#endif
- void icclient_product_freecatalog(struct icclient_catalog *catalog);
+ void icclient_catalog_free(struct icclient_catalog *catalog);
#ifdef __cplusplus
}
diff --git a/product.c b/product.c
index 6c30834..33286cd 100644
--- a/product.c
+++ b/product.c
@@ -1,10 +1,7 @@
#include <stdlib.h>
-#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];