]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Issue #263: add const so the prototype for json_object_object_add_ex() matches the...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Thu, 25 Aug 2016 03:41:22 +0000 (23:41 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Thu, 25 Aug 2016 03:41:22 +0000 (23:41 -0400)
json_object.h

index 55d6a4076df11d64f130ed2645c0f9f241270441..b6fd917cea21e462eea87a6740d8800f2f028e1f 100644 (file)
@@ -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.
  *