diff options
author | Petri Lehtinen <petri@digip.org> | 2013-05-21 08:53:12 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2013-05-21 08:54:27 +0300 |
commit | 5cc594c9e8bc01f9531f80aba82c9775bba94c18 (patch) | |
tree | 918a6d89078a5dd2bbcc7aa3a485218cf579ebd2 | |
parent | ffb7ef4b759ba61222813e43b179fcdcbc835e61 (diff) | |
download | jansson-5cc594c9e8bc01f9531f80aba82c9775bba94c18.zip jansson-5cc594c9e8bc01f9531f80aba82c9775bba94c18.tar.gz jansson-5cc594c9e8bc01f9531f80aba82c9775bba94c18.tar.bz2 |
Don't shadow the stdlib function index() with arg names
Fixes #119.
-rw-r--r-- | src/jansson.h | 8 |
1 files 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); |