aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/randpktdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/randpktdump.c')
-rw-r--r--extcap/randpktdump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c
index 32288df512..894c0c0c45 100644
--- a/extcap/randpktdump.c
+++ b/extcap/randpktdump.c
@@ -136,7 +136,6 @@ int main(int argc, char *argv[])
int produce_type = -1;
randpkt_example *example;
wtap_dumper* savedump;
- int i;
int ret = EXIT_FAILURE;
#ifdef _WIN32
@@ -180,9 +179,6 @@ int main(int argc, char *argv[])
attach_parent_console();
#endif /* _WIN32 */
- for (i = 0; i < argc; i++)
- g_debug("%s ", argv[i]);
-
while ((result = getopt_long(argc, argv, ":", longopts, &option_idx)) != -1) {
switch (result) {
case OPT_VERSION:
@@ -242,6 +238,8 @@ int main(int argc, char *argv[])
}
}
+ extcap_cmdline_debug(argv, argc);
+
if (optind != argc) {
g_warning("Invalid option: %s", argv[optind]);
goto end;