aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/expert_comp_dlg.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-08-05 17:33:14 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-08-05 17:33:14 +0000
commitdd6a15e1c7810fade4be35d45a894b4e95aa513a (patch)
tree53de3edef40b3816f0798ce7edc57eeb923bcfa9 /gtk/expert_comp_dlg.c
parent10260fb76b6f1f6b603abcced06fa68d8cb76756 (diff)
Don't put (non-extern'd) prototypes for protect_thread_critical_region() and
unprotect_thread_critical_region() in every module in gtk/: instead have those modules include main.h (which has the properly extern'd prototype). This should fix the link error on HP-UX described in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2702 svn path=/trunk/; revision=25933
Diffstat (limited to 'gtk/expert_comp_dlg.c')
-rw-r--r--gtk/expert_comp_dlg.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/gtk/expert_comp_dlg.c b/gtk/expert_comp_dlg.c
index cd817cf6b6..baccd3944f 100644
--- a/gtk/expert_comp_dlg.c
+++ b/gtk/expert_comp_dlg.c
@@ -49,6 +49,7 @@
#include "gtk/help_dlg.h"
#include "gtk/expert_comp_dlg.h"
#include "gtk/stock_icons.h"
+#include "gtk/main.h"
/* used to keep track of the statistics for an entire program interface */
@@ -131,8 +132,6 @@ error_packet(void *pss, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const v
}
-void protect_thread_critical_region(void);
-void unprotect_thread_critical_region(void);
static void
win_destroy_cb(GtkWindow *win _U_, gpointer data)
{
@@ -153,8 +152,6 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data)
}
-void protect_thread_critical_region(void);
-void unprotect_thread_critical_region(void);
static void
expert_dlg_destroy_cb(GtkWindow *win _U_, gpointer data)
{
@@ -181,7 +178,7 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_)
GtkWidget *help_bt;
expert_tapdata_t *etd;
GtkTooltips *tooltips = gtk_tooltips_new();
-
+
ss=g_malloc(sizeof(expert_comp_dlg_t));
etd=g_malloc(sizeof(expert_tapdata_t));
@@ -282,13 +279,13 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_)
gtk_widget_show_all(ss->win);
window_present(ss->win);
-
+
/* We currently cannot just retap the packets because we will not be able
* to acquire the fvalue data. The expert items would already have been
* cleared and we will not be able to perform any filtering of data.
* So we force a redissect so that all data is valid.
- * If someone can figure out why the expert_item value is null when
- * performing a retap then this call to
+ * If someone can figure out why the expert_item value is null when
+ * performing a retap then this call to
* cf_redissect_packets(&cfile);
* can be changed to...
* cf_retap_packets(&cfile, NULL);
@@ -297,7 +294,7 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_)
cf_redissect_packets(&cfile);
}
-void
+void
expert_comp_dlg_cb(GtkWidget *w _U_, gpointer d _U_)
{
expert_comp_init("", NULL);
@@ -307,7 +304,7 @@ void
register_tap_listener_expert_comp(void)
{
register_stat_cmd_arg("expert_comp", expert_comp_init,NULL);
- register_stat_menu_item_stock("Expert Info _Composite",
+ register_stat_menu_item_stock("Expert Info _Composite",
REGISTER_ANALYZE_GROUP_UNSORTED, WIRESHARK_STOCK_EXPERT_INFO,
expert_comp_dlg_cb, NULL, NULL, NULL);
}