summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 11:26:51 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 11:26:51 +0800
commit37f68c44c01cd64b3e54c3677aa71c767e13c4d6 (patch)
tree286deaae9cf2635197db96bdb6fec7d9688a29c1
parentf26ca413a5d2568fe20cbe4412dd9fbfb88e26dd (diff)
Shorten pikul_company enum values
-rw-r--r--pikul.c4
-rw-r--r--pikul.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/pikul.c b/pikul.c
index dd6ea33..1c03170 100644
--- a/pikul.c
+++ b/pikul.c
@@ -23,7 +23,7 @@ void pikul_init(enum pikul_company company, char *provisions[])
#endif
shipping.company = company;
switch (company) {
- case PIKUL_COMPANY_ANTERAJA:
+ case PIKUL_ANTERAJA:
anteraja_init(provisions, &shipping);
break;
default:
@@ -51,7 +51,7 @@ struct pikul_services *pikul_services(const char *origin, const char *destinatio
char *post = NULL;
size_t (*handler)(const char *, size_t, size_t, struct pikul_services **);
switch (shipping.company) {
- case PIKUL_COMPANY_ANTERAJA:
+ case PIKUL_ANTERAJA:
anteraja_services(origin, destination, weight, &shipping, &url, &post);
handler = anteraja_services_handle;
break;
diff --git a/pikul.h b/pikul.h
index 7067761..4cd11f7 100644
--- a/pikul.h
+++ b/pikul.h
@@ -2,7 +2,7 @@
#define PIKUL_H
enum pikul_company {
- PIKUL_COMPANY_ANTERAJA
+ PIKUL_ANTERAJA
};
struct pikul_service {