diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2022-11-02 16:07:22 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2022-11-02 16:07:22 +0300 |
commit | 4002ee1805523ade2a39e560f13a23128078524b (patch) | |
tree | 80f518fcb2d7fbe699ac10c034c5d8fec62d1321 /src | |
parent | 799b22429b0c15d5ea9da83056dafe18d094fa34 (diff) |
.......PS. [ZBXNEXT-8040] fixed warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/zbxjson/jsonobj.c | 2 | ||||
-rw-r--r-- | src/libs/zbxjson/jsonpath.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/zbxjson/jsonobj.c b/src/libs/zbxjson/jsonobj.c index f10095d9a94..2a7c365284c 100644 --- a/src/libs/zbxjson/jsonobj.c +++ b/src/libs/zbxjson/jsonobj.c @@ -319,7 +319,7 @@ int zbx_jsonobj_to_string(char **str, size_t *str_alloc, size_t *str_offset, zbx zbx_chrcpy_alloc(str, str_alloc, str_offset, '}'); break; default: - zbx_set_json_strerror("unknown json object with type: %d", obj->type); + zbx_set_json_strerror("unknown json object with type: %u", obj->type); return FAIL; } diff --git a/src/libs/zbxjson/jsonpath.c b/src/libs/zbxjson/jsonpath.c index f7615da0036..eec2ffc6935 100644 --- a/src/libs/zbxjson/jsonpath.c +++ b/src/libs/zbxjson/jsonpath.c @@ -305,7 +305,7 @@ static void jsonpath_list_free(zbx_jsonpath_list_node_t *list) * Purpose: append array index to list * * * ******************************************************************************/ -zbx_jsonpath_list_node_t *jsonpath_list_append_index(zbx_jsonpath_list_node_t *head, int index, +static zbx_jsonpath_list_node_t *jsonpath_list_append_index(zbx_jsonpath_list_node_t *head, int index, int check_duplicate) { zbx_jsonpath_list_node_t *node; @@ -334,7 +334,7 @@ zbx_jsonpath_list_node_t *jsonpath_list_append_index(zbx_jsonpath_list_node_t *h * Purpose: append name to list * * * ******************************************************************************/ -zbx_jsonpath_list_node_t *jsonpath_list_append_name(zbx_jsonpath_list_node_t *head, const char *name, size_t len) +static zbx_jsonpath_list_node_t *jsonpath_list_append_name(zbx_jsonpath_list_node_t *head, const char *name, size_t len) { zbx_jsonpath_list_node_t *node, *new_node; |