diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-04-15 23:03:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-04-15 23:03:58 +0000 |
commit | 53155a11c0a111179c1ee8ad3b2327b127d0ac14 (patch) | |
tree | 3fff7316db904b65421994c9dabfd80d3bd879c3 /ui/gtk/main.h | |
parent | 70f67d065f1b69722df177a54c39d83f21fe3536 (diff) | |
download | wireshark-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.h | 5 |
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__ */ |