From e8b905006e1a768cd8e328bd836ac43e5a2bc2f2 Mon Sep 17 00:00:00 2001 From: Henning Westerholt Date: Thu, 1 Nov 2018 22:51:39 +0100 Subject: [PATCH] kazoo: add kz prefix to str_split utility function - add kz prefix to str_split utility function, to prevent overlapping with a function with similar name in the json module --- src/modules/kazoo/kz_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/kazoo/kz_json.c b/src/modules/kazoo/kz_json.c index 4fd30998f6f..5ab8f68c797 100644 --- a/src/modules/kazoo/kz_json.c +++ b/src/modules/kazoo/kz_json.c @@ -49,7 +49,7 @@ enum json_type kz_json_get_type(struct json_object *jso) typedef str* json_key; typedef json_key* json_keys; -json_keys str_split(char* a_str, const char a_delim, int* c) +json_keys kz_str_split(char* a_str, const char a_delim, int* c) { json_keys result = 0; int count = 0; @@ -145,7 +145,7 @@ struct json_object * kz_json_get_field_object(str* json, str* field) dup = pkg_malloc(field->len+1); memcpy(dup, field->s, field->len); dup[field->len] = '\0'; - keys = str_split(dup, '.', &parts); + keys = kz_str_split(dup, '.', &parts); pkg_free(dup); if (keys)