summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-10-05 15:21:48 +0000
committerderaadt <deraadt@openbsd.org>2014-10-05 15:21:48 +0000
commit7fc050cb5bec24bbd26ad1ef7c2fcf2e55f91d5c (patch)
tree9838e186a8e5eba0f174385fd07d2a2d5f0914b1 /lib/libssl/src
parentUse more specific curves/formats naming for local variables in (diff)
downloadwireguard-openbsd-7fc050cb5bec24bbd26ad1ef7c2fcf2e55f91d5c.tar.xz
wireguard-openbsd-7fc050cb5bec24bbd26ad1ef7c2fcf2e55f91d5c.zip
compile with c89 (code / decl ordering); from Joakim.Tjernlund@transmode.se
ok miod
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/err/err.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c
index 0802249da45..75a1d0181e6 100644
--- a/lib/libssl/src/crypto/err/err.c
+++ b/lib/libssl/src/crypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.39 2014/08/24 16:11:39 bcook Exp $ */
+/* $OpenBSD: err.c,v 1.40 2014/10/05 15:21:48 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1105,8 +1105,9 @@ ERR_add_error_vdata(int num, va_list args)
{
char format[129];
char *errbuf;
- format[0] = '\0';
int i;
+
+ format[0] = '\0';
for (i = 0; i < num; i++) {
if (strlcat(format, "%s", sizeof(format)) >= sizeof(format)) {
ERR_set_error_data("too many errors", ERR_TXT_STRING);