diff --git a/ui/gtk/main.c b/ui/gtk/main.c index e30e4cee56..e10150f03a 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -2341,7 +2341,7 @@ main(int argc, char *argv[]) break; case 'D': /* Print a list of capture devices and exit */ #ifdef HAVE_LIBPCAP - if_list = capture_interface_list(&err, &err_str,main_window_update); + if_list = capture_interface_list(&err, &err_str, NULL); if (if_list == NULL) { if (err == 0) cmdarg_err("There are no interfaces on which a capture can be done"); diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 8aa16c2841..4b50045dff 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -546,7 +546,7 @@ int main(int argc, char *argv[]) break; case 'D': /* Print a list of capture devices and exit */ #ifdef HAVE_LIBPCAP - if_list = capture_interface_list(&err, &err_str,main_window_update); + if_list = capture_interface_list(&err, &err_str, NULL); if (if_list == NULL) { if (err == 0) cmdarg_err("There are no interfaces on which a capture can be done");