From 738aa65629d7b552762cc825829ab5871cd99c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 17 Jul 2021 16:01:30 +0800 Subject: Tidy up a bit --- anteraja.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anteraja.c b/anteraja.c index 89239ab..ffd739a 100644 --- a/anteraja.c +++ b/anteraja.c @@ -106,7 +106,7 @@ void anteraja_order(const char *order_number, const char *service, const char *s sprintf(*url, "%s%s", shipping.base, ORDER_PATH); enum { SKU, QUANTITY, DESCRIPTION, PRICE, WEIGHT }; char *json = NULL; - double total_weight = 0; + double total_weight = .0; for (int i = 0; i < nitems; i++) { size_t length = strlen(ORDER_ITEM) + strlen(items[i][DESCRIPTION]) + ORDER_ITEM_QUANTITY + ORDER_ITEM_PRICE + ORDER_ITEM_WEIGHT - strlen("%s") - 3 * strlen("%d") -- cgit v1.2.3