From ea1499a3724586ef72ff8e6528fadf2ef42c89e9 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Wed, 24 Aug 2016 23:41:22 -0400 Subject: [PATCH] Issue #263: add const so the prototype for json_object_object_add_ex() matches the definition. --- json_object.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/json_object.h b/json_object.h index 55d6a40..b6fd917 100644 --- a/json_object.h +++ b/json_object.h @@ -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. *