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/plist.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/plist.c')
-rw-r--r-- | src/plist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c index 940362e..137188e 100644 --- a/src/plist.c +++ b/src/plist.c @@ -70,7 +70,7 @@ static void plist_free_data(plist_data_t data) static int plist_free_node(node_t* node) { plist_data_t data = NULL; - int index = node_detach(node->parent, node); + int node_index = node_detach(node->parent, node); data = plist_get_data(node); plist_free_data(data); node->data = NULL; @@ -84,7 +84,7 @@ static int plist_free_node(node_t* node) node_destroy(node); - return index; + return node_index; } plist_t plist_new_dict(void) |