mirror of
https://github.com/json-c/json-c.git
synced 2026-11-06 21:50:17 +08:00
Issue #263: add const so the prototype for json_object_object_add_ex() matches the definition.
This commit is contained in:
1 parent
c5b5a984cd
commit
ea1499a372
1 file changed
+4
-2
+4
-2
@@ -385,8 +385,10 @@ 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 int json_object_object_add_ex(struct json_object* obj, const char *key,
|
||||
struct json_object *val, const unsigned opts);
|
||||
extern int json_object_object_add_ex(struct json_object* obj,
|
||||
const char *const key,
|
||||
struct json_object *const val,
|
||||
const unsigned opts);
|
||||
|
||||
/** Get the json_object associate with a given object field.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user