diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 08:32:02 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 08:32:02 +0800 |
commit | 36b87741e0423cab0baaedc5b8e155f4af79498f (patch) | |
tree | a5dd794f3e4496c6155dca3899087f4ae43cfca9 | |
parent | 57719833634055b10091cabf373151760fb9087c (diff) |
Shorten the module's services function name
-rw-r--r-- | anteraja.c | 2 | ||||
-rw-r--r-- | pikul.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ void anteraja_init(char *provisions[], struct shipping *shipping) shipping->headers = curl_slist_append(shipping->headers, "Content-Type:application/json"); } -void anteraja_services_request(const char *origin, const char *destination, double weight, +void anteraja_services(const char *origin, const char *destination, double weight, struct shipping *shipping, char **url, char **post) { static const char *path = "serviceRates"; @@ -9,7 +9,7 @@ extern inline void headers(struct shipping *shipping, const char *fields[], char extern inline void handle(const char *, size_t, struct container *); extern void anteraja_init(char *[], struct shipping *); -extern void anteraja_services_request(const char *, const char *, double, +extern void anteraja_services(const char *, const char *, double, struct shipping *, char **, char **); extern size_t anteraja_services_handle(const char *, size_t, size_t, struct pikul_services **); @@ -51,7 +51,7 @@ struct pikul_services *pikul_services(const char *origin, const char *destinatio size_t (*handler)(const char *, size_t, size_t, struct pikul_services **); switch (shipping.company) { case PIKUL_COMPANY_ANTERAJA: - anteraja_services_request(origin, destination, weight, &shipping, &url, &post); + anteraja_services(origin, destination, weight, &shipping, &url, &post); handler = anteraja_services_handle; break; default: |