aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ldap_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/ldap_stat.c
parent10260fb76b6f1f6b603abcced06fa68d8cb76756 (diff)
downloadwireshark-dd6a15e1c7810fade4be35d45a894b4e95aa513a.tar.gz
wireshark-dd6a15e1c7810fade4be35d45a894b4e95aa513a.tar.bz2
wireshark-dd6a15e1c7810fade4be35d45a894b4e95aa513a.zip
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/ldap_stat.c')
-rw-r--r--gtk/ldap_stat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/ldap_stat.c b/gtk/ldap_stat.c
index baecf4b1e3..b9d272204e 100644
--- a/gtk/ldap_stat.c
+++ b/gtk/ldap_stat.c
@@ -53,6 +53,7 @@
#include "gtk/service_response_time_table.h"
#include "gtk/tap_dfilter_dlg.h"
#include "gtk/gtkglobals.h"
+#include "gtk/main.h"
/* used to keep track of the statistics for an entire program interface */
@@ -92,7 +93,7 @@ ldapstat_packet(void *pldap, packet_info *pinfo, epan_dissect_t *edt _U_, const
return 0;
}
/* if we havnt seen the request, just ignore it */
- if(!ldap->req_frame){
+ if(!ldap->req_frame){
return 0;
}
@@ -127,8 +128,6 @@ ldapstat_draw(void *pldap)
}
-void protect_thread_critical_region(void);
-void unprotect_thread_critical_region(void);
static void
win_destroy_cb(GtkWindow *win _U_, gpointer data)
{
@@ -233,7 +232,7 @@ gtk_ldapstat_init(const char *optarg, void *userdata _U_)
gtk_widget_show_all(ldap->win);
window_present(ldap->win);
-
+
cf_retap_packets(&cfile, FALSE);
}