From 605ce8caf101702011b0aea3781a3511af155018 Mon Sep 17 00:00:00 2001 From: beck <> Date: Sat, 12 Dec 2015 21:02:59 +0000 Subject: make the counter a size_t as well, which quells a warning on visual studio 2015 ok bcook@ --- src/lib/libcrypto/asn1/a_time_tm.c | 5 +++-- src/lib/libssl/src/crypto/asn1/a_time_tm.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c index 65de0d4f18..aa3cb9994c 100644 --- a/src/lib/libcrypto/asn1/a_time_tm.c +++ b/src/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 * @@ -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; diff --git a/src/lib/libssl/src/crypto/asn1/a_time_tm.c b/src/lib/libssl/src/crypto/asn1/a_time_tm.c index 65de0d4f18..aa3cb9994c 100644 --- a/src/lib/libssl/src/crypto/asn1/a_time_tm.c +++ b/src/lib/libssl/src/crypto/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 * @@ -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; -- cgit v1.2.3-55-g6feb