diff options
author | Sumit Bose <sbose@redhat.com> | 2010-10-07 13:13:53 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-10-13 07:56:20 -0400 |
commit | f2c47d820d9f014d70077f3988c4ff453464463f (patch) | |
tree | 9efe2989a91aea35bd628c523b3cef52690ad347 /src/providers/ipa | |
parent | 50b2537f88bfe1d1eacd25818bbac50aec86d21c (diff) | |
download | sssd-f2c47d820d9f014d70077f3988c4ff453464463f.tar.gz sssd-f2c47d820d9f014d70077f3988c4ff453464463f.tar.xz sssd-f2c47d820d9f014d70077f3988c4ff453464463f.zip |
Rename index to idx
This patch suppresses a 'shadows a global declaration' warning.
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_timerules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_timerules.c b/src/providers/ipa/ipa_timerules.c index 8ac074ad..857107df 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; |