summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 11:07:15 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 11:07:15 +0800
commit05b8435ac9cd0c3c762375484281bf20bd21a648 (patch)
tree134c5bc7f8c2cc124cf083acfe181925c19dd925
parent5b2d7b0e4a49cc46a31ba12215fcb2a1691a49fe (diff)
Remove const from pikul_shopify
-rw-r--r--pikul.c2
-rw-r--r--pikul.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/pikul.c b/pikul.c
index e725deb..6ca3ddf 100644
--- a/pikul.c
+++ b/pikul.c
@@ -292,7 +292,7 @@ static inline long crop_limit(size_t len, char *offset)
return strtol(str, NULL, 10);
}
-const char *pikul_shopify(char *origins[], char *destinations[], long grams)
+char *pikul_shopify(char *origins[], char *destinations[], long grams)
{
struct pikul_service **services[PIKUL_END];
for (enum pikul_company company = PIKUL; company < PIKUL_END;
diff --git a/pikul.h b/pikul.h
index 1c16d85..cf4341e 100644
--- a/pikul.h
+++ b/pikul.h
@@ -25,7 +25,7 @@ void pikul_free_services(struct pikul_service **services);
char *pikul_html(char *origins[], char *destinations[], double weight,
const char *widget, const char *extra, const char *name, const char *value,
char *code_prefixes[], char *name_prefixes[]);
-const char *pikul_shopify(char *origins[], char *destinations[], long grams);
+char *pikul_shopify(char *origins[], char *destinations[], long grams);
double pikul_cost(enum pikul_company company, const char *service,
const char *origin, const char *destination, double weight);
char *pikul_order(enum pikul_company company, const char *order_number, const char *service,