From 36b87741e0423cab0baaedc5b8e155f4af79498f 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: Mon, 28 Jun 2021 08:32:02 +0800 Subject: Shorten the module's services function name --- anteraja.c | 2 +- pikul.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/anteraja.c b/anteraja.c index 98af505..05fa870 100644 --- a/anteraja.c +++ b/anteraja.c @@ -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"; diff --git a/pikul.c b/pikul.c index c7cdb56..0ce57a8 100644 --- a/pikul.c +++ b/pikul.c @@ -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: -- cgit v1.2.3