summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2015-12-12 21:02:59 +0000
committerbeck <>2015-12-12 21:02:59 +0000
commit605ce8caf101702011b0aea3781a3511af155018 (patch)
tree0137f8331b6ec49fe73bc0744b32a1841c69ad61
parentb921a8ce5bbd7e69fe11c090659e2d36c92c864c (diff)
downloadopenbsd-605ce8caf101702011b0aea3781a3511af155018.tar.gz
openbsd-605ce8caf101702011b0aea3781a3511af155018.tar.bz2
openbsd-605ce8caf101702011b0aea3781a3511af155018.zip
make the counter a size_t as well, which quells a warning on visual studio 2015
ok bcook@
-rw-r--r--src/lib/libcrypto/asn1/a_time_tm.c5
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_time_tm.c5
2 files changed, 6 insertions, 4 deletions
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 @@
1/* $OpenBSD: a_time_tm.c,v 1.8 2015/10/22 15:38:05 jsing Exp $ */ 1/* $OpenBSD: a_time_tm.c,v 1.9 2015/12/12 21:02:59 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -132,7 +132,8 @@ rfc5280_string_from_tm(struct tm *tm)
132int 132int
133asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) 133asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode)
134{ 134{
135 int i, type = 0; 135 size_t i;
136 int type = 0;
136 struct tm ltm; 137 struct tm ltm;
137 struct tm *lt; 138 struct tm *lt;
138 const char *p; 139 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 @@
1/* $OpenBSD: a_time_tm.c,v 1.8 2015/10/22 15:38:05 jsing Exp $ */ 1/* $OpenBSD: a_time_tm.c,v 1.9 2015/12/12 21:02:59 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -132,7 +132,8 @@ rfc5280_string_from_tm(struct tm *tm)
132int 132int
133asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) 133asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode)
134{ 134{
135 int i, type = 0; 135 size_t i;
136 int type = 0;
136 struct tm ltm; 137 struct tm ltm;
137 struct tm *lt; 138 struct tm *lt;
138 const char *p; 139 const char *p;