diff options
| author | 2014-05-20 17:46:06 +0200 | |
|---|---|---|
| committer | 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) | |||
| 51 | pa->len++; | 51 | pa->len++; |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | void* ptr_array_index(ptrarray_t *pa, size_t index) | 54 | void* ptr_array_index(ptrarray_t *pa, size_t array_index) |
| 55 | { | 55 | { |
| 56 | if (!pa) return NULL; | 56 | if (!pa) return NULL; |
| 57 | if (index >= pa->len) { | 57 | if (array_index >= pa->len) { |
| 58 | return NULL; | 58 | return NULL; |
| 59 | } | 59 | } |
| 60 | return pa->pdata[index]; | 60 | return pa->pdata[array_index]; |
| 61 | } | 61 | } |
