summaryrefslogtreecommitdiff
path: root/extcap/randpktdump.c
diff options
context:
space:
mode:
authorThomas Wiens <th.wiens@gmx.de>2016-01-02 12:51:20 +0100
committerMichael Mann <mmann78@netscape.net>2016-01-02 14:27:10 +0000
commit3866df04dda2ee11ef8d0c21f980a95977f793fe (patch)
tree6c46ab89dad9895e36e3e9d421c0c7b81ed379c6 /extcap/randpktdump.c
parentcc4e827a3fa90031bec6c654fc1b5ac7e56226d1 (diff)
downloadwireshark-3866df04dda2ee11ef8d0c21f980a95977f793fe.tar.gz
Moved variable declaration top, to be C89 compliant
Change-Id: I83b96f8cdabbb3ae67172659492f5992c95fbe73 Reviewed-on: https://code.wireshark.org/review/13004 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'extcap/randpktdump.c')
-rw-r--r--extcap/randpktdump.c6
1 files changed, 4 insertions, 2 deletions
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 */