summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:24:12 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:24:12 +0800
commita3b91bf175b9d51fdd3674112e60a773f13c8ea9 (patch)
treec297742f6f068afed7fe7e901192cd21d2f7b9ee /ord.c
parent0d45381125b73feea759213b8341deb4e08d600c (diff)
Move product freeing implementation to product's own implementation
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ord.c b/ord.c
index 4122b57..c1c2d4c 100644
--- a/ord.c
+++ b/ord.c
@@ -1,10 +1,10 @@
#include <stdlib.h>
#include <stdbool.h>
-#include "icclient/client.h"
+#include "icclient/product.h"
#include "icclient/ord.h"
void icclient_ord_free(struct icclient_ord_order *order)
{
for (size_t i = 0; i < order->nitems; i++)
- icclient_freeproduct(order->items[i]->product);
+ icclient_product_free(order->items[i]->product);
}