aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/afp_stat.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/afp_stat.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/afp_stat.c')
-rw-r--r--gtk/afp_stat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/afp_stat.c b/gtk/afp_stat.c
index 8eb492eebc..2084a81205 100644
--- a/gtk/afp_stat.c
+++ b/gtk/afp_stat.c
@@ -48,11 +48,12 @@
#include "../globals.h"
#include "../stat_menu.h"
-#include "gtk/gui_utils.h"
+#include "gtk/gui_utils.h"
#include "gtk/dlg_utils.h"
#include "gtk/filter_dlg.h"
#include "gtk/service_response_time_table.h"
#include "gtk/tap_dfilter_dlg.h"
+#include "gtk/main.h"
/* used to keep track of the statistics for an entire program interface */
@@ -108,8 +109,6 @@ afpstat_draw(void *pss)
}
-void protect_thread_critical_region(void);
-void unprotect_thread_critical_region(void);
static void
win_destroy_cb(GtkWindow *win _U_, gpointer data)
{
@@ -194,7 +193,7 @@ gtk_afpstat_init(const char *optarg, void *userdata _U_)
gtk_widget_show_all(ss->win);
window_present(ss->win);
-
+
cf_retap_packets(&cfile, FALSE);
}