diff options
author | Martin Szulecki | 2014-05-20 17:46:06 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-05-20 17:46:06 +0200 |
commit | 993f65b3bda53e2b22ee9e94efd11cbddd7b73cb (patch) | |
tree | 0c9b436ae656e36a84a937adf5f6cbfae07f28f1 /src/ptrarray.c | |
parent | 7b59a04d9406fde0847d1ce68c3bf2fde018c198 (diff) | |
download | libplist-993f65b3bda53e2b22ee9e94efd11cbddd7b73cb.tar.gz libplist-993f65b3bda53e2b22ee9e94efd11cbddd7b73cb.tar.bz2 |
Rename "index" variable as it shadows global declaration on older systems
Diffstat (limited to 'src/ptrarray.c')
-rw-r--r-- | src/ptrarray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ptrarray.c b/src/ptrarray.c index 8567752..56d28cb 100644 --- a/src/ptrarray.c +++ b/src/ptrarray.c @@ -51,11 +51,11 @@ void ptr_array_add(ptrarray_t *pa, void *data) pa->len++; } -void* ptr_array_index(ptrarray_t *pa, size_t index) +void* ptr_array_index(ptrarray_t *pa, size_t array_index) { if (!pa) return NULL; - if (index >= pa->len) { + if (array_index >= pa->len) { return NULL; } - return pa->pdata[index]; + return pa->pdata[array_index]; } |