summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-07 13:13:53 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 07:56:20 -0400
commitf2c47d820d9f014d70077f3988c4ff453464463f (patch)
tree9efe2989a91aea35bd628c523b3cef52690ad347 /src/providers/ipa
parent50b2537f88bfe1d1eacd25818bbac50aec86d21c (diff)
downloadsssd-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.c8
1 files changed, 4 insertions, 4 deletions
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;