summaryrefslogtreecommitdiff
path: root/lib/ASN1.c
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.c
parentca4aa9601739ac41bcba0baa7bec32970418cd89 (diff)
downloadlibtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.tar.gz
libtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.tar.bz2
libtasn1-14815d8067cdc87b3e6c2fbf8ca20459e28577d3.zip
Fix warnings.
Diffstat (limited to 'lib/ASN1.c')
-rw-r--r--lib/ASN1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ASN1.c b/lib/ASN1.c
index be533ce..1cbb7b0 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -2384,6 +2384,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)
{
@@ -2450,8 +2451,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);