summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2012-02-17 09:39:35 +0100
committerDavid Sommerseth <davids@redhat.com>2012-02-17 11:03:44 +0100
commit21658881789f53d781fc7ce85c5da578abc6c413 (patch)
tree3fac183c7d4a0ea21f79847e266e76497b63ce93
parent67fe36f888d72d2c9c2b8dac849159a229400367 (diff)
downloadopenvpn-21658881789f53d781fc7ce85c5da578abc6c413.tar.gz
openvpn-21658881789f53d781fc7ce85c5da578abc6c413.tar.xz
openvpn-21658881789f53d781fc7ce85c5da578abc6c413.zip
move variable declaration to top of function
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>
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index 6800e6e..391085b 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