]> granicus.if.org Git - json-c/commitdiff
Update json_object.c
authorssrlive <30760636+ssrlive@users.noreply.github.com>
Mon, 4 Dec 2017 06:46:41 +0000 (14:46 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2017 06:46:41 +0000 (14:46 +0800)
json_object.c

index 6457f7462f9e45b42b6829081894153a2ecb3318..8173eceed24abf543d8c87a3addb3c5bffd01a89 100644 (file)
@@ -1374,7 +1374,7 @@ int json_c_shallow_copy_default(json_object *src, json_object *parent, const cha
  *
  * Note: caller is responsible for freeing *dst if this fails and returns -1.
  */
-static int json_object_deep_copy_recursive(struct json_object *src, struct json_object *parent, const char *key_in_parent, size_t index_in_parent, struct json_object **dst, json_c_shallow_copy_fn shallow_copy)
+static int json_object_deep_copy_recursive(struct json_object *src, struct json_object *parent, const char *key_in_parent, size_t index_in_parent, struct json_object **dst, json_c_shallow_copy_fn *shallow_copy)
 {
        struct json_object_iter iter;
        size_t src_array_len, ii;
@@ -1443,7 +1443,7 @@ static int json_object_deep_copy_recursive(struct json_object *src, struct json_
        return 0;
 }
 
-int json_object_deep_copy(struct json_object *src, struct json_object **dst, json_c_shallow_copy_fn shallow_copy)
+int json_object_deep_copy(struct json_object *src, struct json_object **dst, json_c_shallow_copy_fn *shallow_copy)
 {
        int rc;