refactor cJSONUtils_GeneratePatches

This commit is contained in:
Max Bruckner
2017-05-02 01:30:58 +02:00
parent a67c24c451
commit f030058183
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1021,7 +1021,7 @@ static void cJSONUtils_CompareToPatch(cJSON * const patches, const unsigned char
}
}
CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON *from, cJSON *to)
CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * const to)
{
cJSON *patches = cJSON_CreateArray();
cJSONUtils_CompareToPatch(patches, (const unsigned char*)"", from, to);