summaryrefslogtreecommitdiff
path: root/handler.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 20:47:59 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 20:47:59 +0800
commit2419d61c5171479586ba606834dcbfaa138c9bb3 (patch)
tree074724342b5dc99af63b461a8ac60a9989d890d3 /handler.h
parent7b90ae5879f80ddb9f0a11aaa0fb63d16844fa59 (diff)
Rename waybill to tracking_number
Diffstat (limited to 'handler.h')
-rw-r--r--handler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/handler.h b/handler.h
index e940d91..a2c031b 100644
--- a/handler.h
+++ b/handler.h
@@ -75,9 +75,9 @@ inline void handle(enum type type, const char *contents, size_t num_bytes, const
;
struct json_object *string = NULL;
recurse(response, trail, &string);
- char **waybill = (char **)data;
- *waybill = malloc(json_object_get_string_len(string) + 1);
- strcpy(*waybill, json_object_get_string(string));
+ char **tracking_number = (char **)data;
+ *tracking_number = malloc(json_object_get_string_len(string) + 1);
+ strcpy(*tracking_number, json_object_get_string(string));
break;
default:
break;