From 5cc594c9e8bc01f9531f80aba82c9775bba94c18 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 21 May 2013 08:53:12 +0300 Subject: [PATCH] Don't shadow the stdlib function index() with arg names Fixes #119. --- src/jansson.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jansson.h b/src/jansson.h index 6bbc0cb..77cc5ba 100644 --- a/src/jansson.h +++ b/src/jansson.h @@ -181,9 +181,9 @@ int json_array_clear(json_t *array); int json_array_extend(json_t *array, json_t *other); static JSON_INLINE -int json_array_set(json_t *array, size_t index, json_t *value) +int json_array_set(json_t *array, size_t ind, json_t *value) { - return json_array_set_new(array, index, json_incref(value)); + return json_array_set_new(array, ind, json_incref(value)); } static JSON_INLINE @@ -193,9 +193,9 @@ int json_array_append(json_t *array, json_t *value) } static JSON_INLINE -int json_array_insert(json_t *array, size_t index, json_t *value) +int json_array_insert(json_t *array, size_t ind, json_t *value) { - return json_array_insert_new(array, index, json_incref(value)); + return json_array_insert_new(array, ind, json_incref(value)); } const char *json_string_value(const json_t *string);