summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2015-12-12 21:02:59 +0000
committerbeck <beck@openbsd.org>2015-12-12 21:02:59 +0000
commite9d68136af9fadd999cc705a188d0d661b504656 (patch)
treec44981692e0324f23bfd3b68eb73613ce697a38b /lib/libssl/src
parentRemove NULL-checks before free(). ok tb@ (diff)
downloadwireguard-openbsd-e9d68136af9fadd999cc705a188d0d661b504656.tar.xz
wireguard-openbsd-e9d68136af9fadd999cc705a188d0d661b504656.zip
make the counter a size_t as well, which quells a warning on visual studio 2015
ok bcook@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/asn1/a_time_tm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/asn1/a_time_tm.c b/lib/libssl/src/crypto/asn1/a_time_tm.c
index 65de0d4f180..aa3cb9994cb 100644
--- a/lib/libssl/src/crypto/asn1/a_time_tm.c
+++ b/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 <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;