summaryrefslogtreecommitdiff
path: root/ui/gtk/main.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-04-15 23:03:58 +0000
committerGuy Harris <guy@alum.mit.edu>2012-04-15 23:03:58 +0000
commit53155a11c0a111179c1ee8ad3b2327b127d0ac14 (patch)
tree3fff7316db904b65421994c9dabfd80d3bd879c3 /ui/gtk/main.h
parent70f67d065f1b69722df177a54c39d83f21fe3536 (diff)
downloadwireshark-53155a11c0a111179c1ee8ad3b2327b127d0ac14.tar.gz
Get rid of the error code argument to scan_local_interfaces(); nobody
uses it once it's filled in. From Evan Huus: in scan_local_interfaces(), pass NULL to capture_interface_list(), as we don't use the error string (and don't free it, either). In fill_capture_box(), for CANT_GET_INTERFACE_LIST, include the error string in the report, and free it, in all cases, when we're done with it. svn path=/trunk/; revision=42089
Diffstat (limited to 'ui/gtk/main.h')
-rw-r--r--ui/gtk/main.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gtk/main.h b/ui/gtk/main.h
index 77de5b694b..31f3fd8a9f 100644
--- a/ui/gtk/main.h
+++ b/ui/gtk/main.h
@@ -357,8 +357,9 @@ void hide_interface(gchar* new_hide);
/*
* Fetch the list of local interfaces with capture_interface_list()
* and set the list of "all interfaces" in *capture_opts to include
- * those interfaces.
+ * those interfaces. On failure, we just set the list to an empty
+ * list.
*/
-extern void scan_local_interfaces(capture_options* capture_opts, int *error);
+extern void scan_local_interfaces(capture_options* capture_opts);
#endif /* __MAIN_H__ */