summaryrefslogtreecommitdiff
path: root/pikul.c
diff options
context:
space:
mode:
Diffstat (limited to 'pikul.c')
-rw-r--r--pikul.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/pikul.c b/pikul.c
index 5f04136..cb74feb 100644
--- a/pikul.c
+++ b/pikul.c
@@ -14,8 +14,8 @@ extern void anteraja_init(char *[]);
extern void anteraja_services(const char *, const char *, double, char **, char **);
extern size_t anteraja_services_handle(const char *, size_t, size_t, struct pikul_services **);
extern void anteraja_order(const char *, const char *, const char *, const char *, const char *,
- const char *, const char *, const char *, const char *, const char *, int,
- char **[], _Bool, double, char **, char **);
+ const char *, const char *, const char *, const char *, const char *, const char *,
+ const char *, int, char **[], _Bool, double, char **, char **);
extern size_t anteraja_order_handle(const char *, size_t size, size_t nmemb, char **);
extern void anteraja_cleanup();
@@ -114,8 +114,9 @@ double pikul_cost(const char *origin, const char *destination, double weight, co
char *pikul_order(const char *order_number, const char *service, const char *sender_name,
const char *sender_phone, const char *origin, const char *sender_address,
- const char *receiver_name, const char *receiver_phone, const char *destination,
- const char *receiver_address, int nitems, char **items[], _Bool insurance, double subtotal)
+ const char *sender_postal, const char *receiver_name, const char *receiver_phone,
+ const char *destination, const char *receiver_address, const char *receiver_postal,
+ int nitems, char **items[], _Bool insurance, double subtotal)
{
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &waybill);
char *url;
@@ -124,8 +125,9 @@ char *pikul_order(const char *order_number, const char *service, const char *sen
switch (shipping.company) {
case PIKUL_ANTERAJA:
anteraja_order(order_number, service, sender_name, sender_phone, origin,
- sender_address, receiver_name, receiver_phone, destination,
- receiver_address, nitems, items, insurance, subtotal, &url, &post);
+ sender_address, sender_postal, receiver_name, receiver_phone,
+ destination, receiver_address, receiver_postal, nitems, items,
+ insurance, subtotal, &url, &post);
handler = anteraja_order_handle;
break;
default: