From: Ezra Peisach Date: Sat, 10 Mar 2001 22:56:44 +0000 (+0000) Subject: * kdb_xdr.c: Change the variable index to idx to prevent function X-Git-Tag: krb5-1.3-alpha1~1629 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cc8c41ece1134e513857e61e59bb7249d4f9b7b;p=krb5.git * kdb_xdr.c: Change the variable index to idx to prevent function name shadowing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13069 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 67b9c1ac6..48505826b 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-10 Ezra Peisach + + * kdb_xdr.c: Change the variable index to idx to prevent function + name shadowing. + 2000-11-01 Ezra Peisach * configure.in: Use AC_CHECK_HEADERS instead of AC_HAVE_HEADERS. diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 1d4409743..ebe8189f0 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -722,7 +722,7 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) krb5_int32 kvno; krb5_key_data **kdatap; { - int i, index; + int i, idx; int maxkvno; krb5_key_data *datap; @@ -763,7 +763,7 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) if (kvno >= 0) { if (kvno == dbentp->key_data[i].key_data_kvno) { datap = &dbentp->key_data[i]; - index = i; + idx = i; maxkvno = kvno; break; } @@ -771,7 +771,7 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) if (dbentp->key_data[i].key_data_kvno > maxkvno) { maxkvno = dbentp->key_data[i].key_data_kvno; datap = &dbentp->key_data[i]; - index = i; + idx = i; } } } @@ -779,7 +779,7 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) if (maxkvno < 0) return ENOENT; *kdatap = datap; - *start = index+1; + *start = idx+1; return 0; }