Browse Source

Update json_object.c

tags/json-c-0.13-20171207
ssrlive GitHub 8 years ago
parent
commit
2643658b6f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      json_object.c

+ 2
- 2
json_object.c View 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. * 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; struct json_object_iter iter;
size_t src_array_len, ii; 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; 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; int rc;




Loading…
Cancel
Save