]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
move variable declaration to top of function
authorHeiko Hund <heiko.hund@sophos.com>
Fri, 17 Feb 2012 08:39:35 +0000 (09:39 +0100)
committerDavid Sommerseth <davids@redhat.com>
Fri, 17 Feb 2012 10:03:44 +0000 (11:03 +0100)
MSVC chokes on this as it's not according to C89.

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
buffer.c

index 6800e6e42aa0c79eb25ac31e87aca6cfed1af375..391085b9a960c9cebc3b53692dc1af729e56fd6f 100644 (file)
--- 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