From: Heiko Hund Date: Fri, 17 Feb 2012 08:39:35 +0000 (+0100) Subject: move variable declaration to top of function X-Git-Tag: v2.3-alpha1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21658881789f53d781fc7ce85c5da578abc6c413;p=thirdparty%2Fopenvpn.git move variable declaration to top of function MSVC chokes on this as it's not according to C89. Signed-off-by: Heiko Hund Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- diff --git a/buffer.c b/buffer.c index 6800e6e42..391085b9a 100644 --- a/buffer.c +++ b/buffer.c @@ -321,9 +321,9 @@ gc_malloc (size_t size, bool clear, struct gc_arena *a) #endif { void *ret; + struct gc_entry *e; ASSERT (NULL != a); - struct gc_entry *e; #ifdef DMALLOC e = (struct gc_entry *) openvpn_dmalloc (file, line, size + sizeof (struct gc_entry)); #else