summaryrefslogtreecommitdiff
path: root/interchange.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 20:27:23 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 20:27:23 +0800
commitaca2dbad31d1c7d76f08344244013c507d657222 (patch)
tree5fd8c003f50d60b5ca65828d7951ad829de2e7bb /interchange.c
parent7f0b0306514fc7187440998e183b9d6dfbaa2d01 (diff)
Product & order free-ers are now clearers
Diffstat (limited to 'interchange.c')
-rw-r--r--interchange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interchange.c b/interchange.c
index b173614..8718e20 100644
--- a/interchange.c
+++ b/interchange.c
@@ -67,7 +67,7 @@ void interchange_page(const char *path, void (*handler)(interchange_response *))
request(handler, NULL, NULL, "%s", path);
}
-void interchange_free_product(struct interchange_product *product)
+void interchange_clear_product(struct interchange_product *product)
{
if (product->crosssell)
for (size_t i = 0; i < product->crosssell->length; i++)
@@ -92,7 +92,7 @@ void interchange_free_product(struct interchange_product *product)
void interchange_free_catalog(struct interchange_catalog *catalog)
{
for (size_t i = 0; i < catalog->length; i++)
- interchange_free_product(&catalog->products[i]);
+ interchange_clear_product(&catalog->products[i]);
free(catalog);
}