From 9207ab67b18f63516d68a92495a6bc3da5a98806 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sun, 5 Oct 2014 15:21:48 +0000 Subject: compile with c89 (code / decl ordering); from Joakim.Tjernlund@transmode.se ok miod --- src/lib/libcrypto/err/err.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/err/err.c') diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index 0802249da4..75a1d0181e 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/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); -- cgit v1.2.3-55-g6feb