mirror of
https://github.com/json-c/json-c.git
synced 2026-03-31 19:09:07 +08:00
json_object_object_add_ex() should have shared code with json_object_object_add(), and been changed to return int at the same time the latter was. Do that now.
Also correct a couple of calls to _to_json_string to check the return value.
This commit is contained in:
@@ -385,7 +385,7 @@ extern int json_object_object_add(struct json_object* obj, const char *key,
|
||||
* @param opts process-modifying options. To specify multiple options, use
|
||||
* arithmetic or (OPT1|OPT2)
|
||||
*/
|
||||
extern void json_object_object_add_ex(struct json_object* obj, const char *key,
|
||||
extern int json_object_object_add_ex(struct json_object* obj, const char *key,
|
||||
struct json_object *val, const unsigned opts);
|
||||
|
||||
/** Get the json_object associate with a given object field.
|
||||
|
||||
Reference in New Issue
Block a user