summaryrefslogtreecommitdiff
path: root/devel/jansson/files/patch-src_jansson.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/jansson/files/patch-src_jansson.h')
-rw-r--r--devel/jansson/files/patch-src_jansson.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/devel/jansson/files/patch-src_jansson.h b/devel/jansson/files/patch-src_jansson.h
index edca944cf86f..5a788d2bdd06 100644
--- a/devel/jansson/files/patch-src_jansson.h
+++ b/devel/jansson/files/patch-src_jansson.h
@@ -1,6 +1,6 @@
---- src/jansson.h.orig 2016-08-26 17:37:02 UTC
+--- src/jansson.h.orig 2018-11-26 08:10:21 UTC
+++ src/jansson.h
-@@ -159,10 +159,10 @@ int json_object_iter_set_new(json_t *obj
+@@ -219,10 +219,10 @@ int json_object_iter_set_new(json_t *object, void *ite
key = json_object_iter_key(n), \
n = json_object_iter_next(object, json_object_key_to_iter(key)))
@@ -15,13 +15,13 @@
static JSON_INLINE
int json_object_set(json_t *object, const char *key, json_t *value)
-@@ -183,11 +183,11 @@ int json_object_iter_set(json_t *object,
+@@ -243,11 +243,11 @@ int json_object_iter_set(json_t *object, void *iter, j
}
size_t json_array_size(const json_t *array);
--json_t *json_array_get(const json_t *array, size_t index);
+-json_t *json_array_get(const json_t *array, size_t index) JANSSON_ATTRS(warn_unused_result);
-int json_array_set_new(json_t *array, size_t index, json_t *value);
-+json_t *json_array_get(const json_t *array, size_t idx);
++json_t *json_array_get(const json_t *array, size_t idx) JANSSON_ATTRS(warn_unused_result);
+int json_array_set_new(json_t *array, size_t idx, json_t *value);
int json_array_append_new(json_t *array, json_t *value);
-int json_array_insert_new(json_t *array, size_t index, json_t *value);