From 3866df04dda2ee11ef8d0c21f980a95977f793fe Mon Sep 17 00:00:00 2001
From: Thomas Wiens
Date: Sat, 2 Jan 2016 12:51:20 +0100
Subject: Moved variable declaration top, to be C89 compliant
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Change-Id: I83b96f8cdabbb3ae67172659492f5992c95fbe73
Reviewed-on: https://code.wireshark.org/review/13004
Petri-Dish: Stig Bjørlykke
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann
---
extcap/randpktdump.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'extcap/randpktdump.c')
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c
index d45ac46e29..689db6ac01 100644
--- a/extcap/randpktdump.c
+++ b/extcap/randpktdump.c
@@ -288,14 +288,16 @@ int main(int argc, char *argv[])
wtap_dumper* savedump;
int i;
+#ifdef _WIN32
+ WSADATA wsaData;
+#endif /* _WIN32 */
+
if (argc == 1) {
help(argv[0]);
return EXIT_FAILURE;
}
#ifdef _WIN32
- WSADATA wsaData;
-
attach_parent_console();
#endif /* _WIN32 */
--
cgit v1.2.3