aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugin_if.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-12-14 14:13:39 -0800
committerGerald Combs <gerald@wireshark.org>2017-12-14 23:43:38 +0000
commit90102ad12ec601abcc2270e4779f8d2fc1c0c937 (patch)
tree49a63bad606de772ae1500e06d8e55a5ffeb65d5 /epan/plugin_if.h
parentafc6e773dc84ddcf57af59e0fd87ab1625204786 (diff)
Remove a plugin_if_gui_cb type conversion.
We always pass a GHashTable * to plugin_if_gui_cb so don't cast it to a gconstpointer. This should fix the following and related warnings: main_window.cpp: In function ‘void plugin_if_mainwindow_apply_filter(gconstpointer)’: main_window.cpp:121:44: warning: cast from type ‘gconstpointer {aka const void*}’ to type ‘GHashTable* {aka _GHashTable*}’ casts away qualifiers [-Wcast-qual] GHashTable * data_set = (GHashTable *) user_data; Fix another const warning while we're here. Change-Id: Ia9225188bfb913feb4fef4369f10fd5791fc8dc9 Reviewed-on: https://code.wireshark.org/review/24830 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/plugin_if.h')
-rw-r--r--epan/plugin_if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/plugin_if.h b/epan/plugin_if.h
index 8cd0c6a883..78ebeda171 100644
--- a/epan/plugin_if.h
+++ b/epan/plugin_if.h
@@ -400,7 +400,7 @@ typedef enum
} plugin_if_callback_t;
-typedef void (*plugin_if_gui_cb)(gconstpointer user_data);
+typedef void (*plugin_if_gui_cb)(GHashTable * data_set);
WS_DLL_PUBLIC void plugin_if_register_gui_cb(plugin_if_callback_t actionType, plugin_if_gui_cb callback);