From: Ezra Peisach Date: Sun, 11 Mar 2001 02:55:44 +0000 (+0000) Subject: * oid_ops.c: Avoid the use of a variable named index X-Git-Tag: krb5-1.3-alpha1~1626 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=40e9566459e86acded1d7a21ac78a7033043653b;p=krb5.git * oid_ops.c: Avoid the use of a variable named index git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13072 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 0cf31390c..b96758ef3 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,7 @@ +2001-03-10 Ezra Peisach + + * oid_ops.c: Avoid the use of a variable named index. + 2000-10-03 Ezra Peisach * gssapiP_generic.h (g_OID_equal): Instead of casting argument to diff --git a/src/lib/gssapi/generic/oid_ops.c b/src/lib/gssapi/generic/oid_ops.c index 477e07163..641c28dd6 100644 --- a/src/lib/gssapi/generic/oid_ops.c +++ b/src/lib/gssapi/generic/oid_ops.c @@ -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))