summaryrefslogtreecommitdiff
path: root/extcap/randpktdump.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-02-29 08:14:03 -0500
committerMichael Mann <mmann78@netscape.net>2016-02-29 13:15:07 +0000
commit3771a790b7b9ffccfa15130f15ebe2da966edfeb (patch)
treef78ced2859b73d75d6766d6caf7c0809791a532e /extcap/randpktdump.c
parenta4e2263ac4c15c9bfb78444b0b0747cae8022a9c (diff)
downloadwireshark-3771a790b7b9ffccfa15130f15ebe2da966edfeb.tar.gz
Fix randpktdump build in Windows.
Change-Id: If749635d771443542285a74f05f37156123b2991 Reviewed-on: https://code.wireshark.org/review/14238 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'extcap/randpktdump.c')
-rw-r--r--extcap/randpktdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c
index 316822d532..2b44b38381 100644
--- a/extcap/randpktdump.c
+++ b/extcap/randpktdump.c
@@ -163,15 +163,15 @@ int main(int argc, char *argv[])
wtap_dumper* savedump;
int i;
+#ifdef _WIN32
+ WSADATA wsaData;
+#endif /* _WIN32 */
+
extcap_parameters * extcap_conf = g_new0(extcap_parameters, 1);
extcap_base_set_util_info(extcap_conf, RANDPKTDUMP_VERSION_MAJOR, RANDPKTDUMP_VERSION_MINOR, RANDPKTDUMP_VERSION_RELEASE, NULL);
extcap_base_register_interface(extcap_conf, RANDPKT_EXTCAP_INTERFACE, "Random packet generator", 147, "Generator dependent DLT");
-#ifdef _WIN32
- WSADATA wsaData;
-#endif /* _WIN32 */
-
if (argc == 1) {
help(argv[0]);
return EXIT_FAILURE;