summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-12-12 21:03:00 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-12-12 21:03:00 +0000
commit0d5cfbad1e0c4f214fcb9e997004f4272bda6dd6 (patch)
tree5dc2dbef65ccf8a741748664f435a66f4094c270
parent4d4939d0ffa9ba52cc46c72e1382beae4e0fbcd7 (diff)
make the counter a size_t as well, which quells a warning on visual studio 2015
ok bcook@
-rw-r--r--lib/libcrypto/asn1/a_time_tm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/a_time_tm.c b/lib/libcrypto/asn1/a_time_tm.c
index 65de0d4f180..aa3cb9994cb 100644
--- a/lib/libcrypto/asn1/a_time_tm.c
+++ b/lib/libcrypto/asn1/a_time_tm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_time_tm.c,v 1.8 2015/10/22 15:38:05 jsing Exp $ */
+/* $OpenBSD: a_time_tm.c,v 1.9 2015/12/12 21:02:59 beck Exp $ */
/*
* Copyright (c) 2015 Bob Beck <beck@openbsd.org>
*
@@ -132,7 +132,8 @@ rfc5280_string_from_tm(struct tm *tm)
int
asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode)
{
- int i, type = 0;
+ size_t i;
+ int type = 0;
struct tm ltm;
struct tm *lt;
const char *p;