From f2c47d820d9f014d70077f3988c4ff453464463f Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 7 Oct 2010 13:13:53 +0200 Subject: Rename index to idx This patch suppresses a 'shadows a global declaration' warning. --- src/providers/ipa/ipa_timerules.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/providers/ipa/ipa_timerules.c b/src/providers/ipa/ipa_timerules.c index 8ac074add..857107dfa 100644 --- a/src/providers/ipa/ipa_timerules.c +++ b/src/providers/ipa/ipa_timerules.c @@ -263,18 +263,18 @@ static int test_bit(unsigned char *bitmap, unsigned int bit) */ static int name_index(const char **name_array, const char *key, int min) { - int index = 0; + int idx = 0; const char *one; if (name_array == NULL) { return -1; } - while ((one = name_array[index]) != NULL) { + while ((one = name_array[idx]) != NULL) { if (strcmp(key,one) == 0) { - return index+min; + return idx+min; } - index++; + idx++; } return -1; -- cgit