diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 1b87d1b..2f131a8 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -1140,7 +1140,7 @@ static cJSON *cJSONUtils_SortList(cJSON *list) return result; } -CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object) +CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object) { object->child = cJSONUtils_SortList(object->child); } diff --git a/cJSON_Utils.h b/cJSON_Utils.h index 88898ee..d7234bb 100644 --- a/cJSON_Utils.h +++ b/cJSON_Utils.h @@ -64,4 +64,4 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON *from, cJSON *to); CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * const target); /* Sorts the members of the object into alphabetical order. */ -CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object); +CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object);