diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-05 17:33:14 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-05 17:33:14 +0000 |
commit | 762c6d51890833883f138a8202cfd78ba5582cbd (patch) | |
tree | 53de3edef40b3816f0798ce7edc57eeb923bcfa9 /gtk/rpc_progs.c | |
parent | 6872b1d50984bb4e16dbdeb94b425f4e6eb31a6c (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25933 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/rpc_progs.c')
-rw-r--r-- | gtk/rpc_progs.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gtk/rpc_progs.c b/gtk/rpc_progs.c index 2a335a242a..643d46462c 100644 --- a/gtk/rpc_progs.c +++ b/gtk/rpc_progs.c @@ -6,17 +6,17 @@ * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -47,6 +47,7 @@ #include "gtk/gui_stat_menu.h" #include "gtk/gui_utils.h" #include "gtk/dlg_utils.h" +#include "gtk/main.h" static GtkWidget *win=NULL; @@ -209,7 +210,7 @@ rpcprogs_packet(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co } } - + /* we are only interested in reply packets */ if(ri->request){ return 0; @@ -243,7 +244,7 @@ rpcprogs_packet(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co rp->max.secs=delta.secs; rp->max.nsecs=delta.nsecs; } - + rp->tot.secs += delta.secs; rp->tot.nsecs += delta.nsecs; if(rp->tot.nsecs>1000000000){ @@ -305,8 +306,6 @@ rpcprogs_draw(void *dummy _U_) * * there should not be any other critical regions in gtk2 */ -void protect_thread_critical_region(void); -void unprotect_thread_critical_region(void); static void win_destroy_cb(void *dummy _U_, gpointer data _U_) { @@ -403,7 +402,7 @@ gtk_rpcprogs_init(const char *optarg _U_, void* userdata _U_) gtk_widget_show_all(win); window_present(win); - + cf_retap_packets(&cfile, FALSE); } |