summaryrefslogtreecommitdiff
path: root/lib/gnutls_x509.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-08-29 11:14:49 +0200
committerSimon Josefsson <simon@josefsson.org>2008-08-29 11:14:49 +0200
commit0c0fdef9b3fb603e8a170a598351aec5c27896c7 (patch)
tree3fcc24d71d4819c2ff18e75b2557945cdc2c3c00 /lib/gnutls_x509.c
parentc6de7cca81ff88231815866178d5d553bed21b7b (diff)
downloadgnutls-0c0fdef9b3fb603e8a170a598351aec5c27896c7.tar.gz
Fix warnings.
Diffstat (limited to 'lib/gnutls_x509.c')
-rw-r--r--lib/gnutls_x509.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c
index 651ba61aa1..5a6f4cead7 100644
--- a/lib/gnutls_x509.c
+++ b/lib/gnutls_x509.c
@@ -1560,7 +1560,7 @@ parse_pkcs12 (gnutls_certificate_credentials_t res,
gnutls_x509_crt_t * cert, gnutls_x509_crl_t * crl)
{
gnutls_pkcs12_bag_t bag = NULL;
- int index = 0;
+ int idx = 0;
int ret;
for (;;)
@@ -1576,7 +1576,7 @@ parse_pkcs12 (gnutls_certificate_credentials_t res,
goto done;
}
- ret = gnutls_pkcs12_get_bag (p12, index, bag);
+ ret = gnutls_pkcs12_get_bag (p12, idx, bag);
if (ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
break;
if (ret < 0)
@@ -1691,7 +1691,7 @@ parse_pkcs12 (gnutls_certificate_credentials_t res,
}
}
- index++;
+ idx++;
gnutls_pkcs12_bag_deinit (bag);
}