mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
cJSONUtils_ApplyPatch -> apply_patch
This commit is contained in:
parent
cf1770b0ea
commit
997ca129a2
@ -603,7 +603,7 @@ static void overwrite_item(cJSON * const root, const cJSON replacement)
|
|||||||
memcpy(root, &replacement, sizeof(cJSON));
|
memcpy(root, &replacement, sizeof(cJSON));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cJSONUtils_ApplyPatch(cJSON *object, const cJSON *patch)
|
static int apply_patch(cJSON *object, const cJSON *patch)
|
||||||
{
|
{
|
||||||
cJSON *path = NULL;
|
cJSON *path = NULL;
|
||||||
cJSON *value = NULL;
|
cJSON *value = NULL;
|
||||||
@ -837,7 +837,7 @@ CJSON_PUBLIC(int) cJSONUtils_ApplyPatches(cJSON * const object, const cJSON * co
|
|||||||
|
|
||||||
while (current_patch != NULL)
|
while (current_patch != NULL)
|
||||||
{
|
{
|
||||||
status = cJSONUtils_ApplyPatch(object, current_patch);
|
status = apply_patch(object, current_patch);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
Reference in New Issue
Block a user