* oid_ops.c: Avoid the use of a variable named index
authorEzra Peisach <epeisach@mit.edu>
Sun, 11 Mar 2001 02:55:44 +0000 (02:55 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 11 Mar 2001 02:55:44 +0000 (02:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13072 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/generic/ChangeLog
src/lib/gssapi/generic/oid_ops.c

index 0cf31390c263d3ae3088ca7257faeee2e750195f..b96758ef37a0189140c8a20746e935a7377e41f6 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-10  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * oid_ops.c: Avoid the use of a variable named index.
+
 2000-10-03  Ezra Peisach  <epeisach@mit.edu>
 
        * gssapiP_generic.h (g_OID_equal): Instead of casting argument to
index 477e071634f797be54c85f9141d82dd4bb431e69..641c28dd6b258ded63ee82ba13029de53bbc9794 100644 (file)
@@ -271,7 +271,7 @@ generic_gss_str_to_oid(minor_status, oid_str, oid)
     long       numbuf;
     long       onumbuf;
     OM_uint32  nbytes;
-    int                index;
+    int                idx;
     unsigned char *op;
 
     brace = 0;
@@ -361,12 +361,12 @@ generic_gss_str_to_oid(minor_status, oid_str, oid)
                }
                numbuf = onumbuf;
                op += nbytes;
-               index = -1;
+               idx = -1;
                while (numbuf) {
-                   op[index] = (unsigned char) numbuf & 0x7f;
-                   if (index != -1)
-                       op[index] |= 0x80;
-                   index--;
+                   op[idx] = (unsigned char) numbuf & 0x7f;
+                   if (idx != -1)
+                       op[idx] |= 0x80;
+                   idx--;
                    numbuf >>= 7;
                }
                while (isdigit(*bp))