summaryrefslogtreecommitdiff
path: root/lib/ASN1.y
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-17 18:54:08 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-17 18:54:08 +0100
commit14815d8067cdc87b3e6c2fbf8ca20459e28577d3 (patch)
tree5d362edf0c321e7adad3a106ea4c82528505ab7e /lib/ASN1.y
parentca4aa9601739ac41bcba0baa7bec32970418cd89 (diff)
downloadlibtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.tar.gz
libtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.tar.bz2
libtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.zip
Fix warnings.
Diffstat (limited to 'lib/ASN1.y')
-rw-r--r--lib/ASN1.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 94b63f9..1b30822 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -432,6 +432,7 @@ _asn1_yylex()
{
int c,counter=0,k,lastc;
char string[ASN1_MAX_NAME_SIZE+1]; /* will contain the next token */
+ size_t i;
while(1)
{
@@ -498,8 +499,8 @@ _asn1_yylex()
}
/* Is STRING a keyword? */
- for(k=0;k<(sizeof(key_word)/sizeof(char*));k++)
- if(!strcmp(string,key_word[k])) return key_word_token[k];
+ for(i=0;i<(sizeof(key_word)/sizeof(char*));i++)
+ if(!strcmp(string,key_word[i])) return key_word_token[i];
/* STRING is an IDENTIFIER */
strcpy(yylval.str,string);