* kdb_xdr.c: Change the variable index to idx to prevent function
authorEzra Peisach <epeisach@mit.edu>
Sat, 10 Mar 2001 22:56:44 +0000 (22:56 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 10 Mar 2001 22:56:44 +0000 (22:56 +0000)
        name shadowing.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13069 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_xdr.c

index 67b9c1ac62674abcc8501ed56c645b48b481bba7..48505826b611ccb6c171df7d25dcf907c5f2b13e 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-10  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * kdb_xdr.c: Change the variable index to idx to prevent function
+       name shadowing.
+
 2000-11-01  Ezra Peisach  <epeisach@mit.edu>
 
        * configure.in: Use AC_CHECK_HEADERS instead of AC_HAVE_HEADERS. 
index 1d44097433ad7281e6508d54a039634e2a9a7976..ebe8189f03ccab1a47f581d120ea7472c188e0a8 100644 (file)
@@ -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;
 }