From 993f65b3bda53e2b22ee9e94efd11cbddd7b73cb Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 20 May 2014 17:46:06 +0200 Subject: Rename "index" variable as it shadows global declaration on older systems --- src/plist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plist.c') 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) -- cgit v1.1-32-gdbae