Don't define a static variable (the_tapinfo_struct) in a header file; instead declare...
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Sep 2008 14:50:05 +0000 (14:50 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Sep 2008 14:50:05 +0000 (14:50 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26244 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/rtp_stream.c
tap-rtp-common.h
tap-rtp.c

index efca6b83fc145e6de15f04e49ab613296ddd2a60..29770fb18eee6662541afe3bec464771d9cb9f74 100644 (file)
 #include "gtk/rtp_stream_dlg.h"
 #include "gtk/main.h"
 
+/* The one and only global rtpstream_tapinfo_t structure for tshark and wireshark.
+ */ 
+static rtpstream_tapinfo_t the_tapinfo_struct = 
+        {0, NULL, 0, TAP_ANALYSE, NULL, NULL, NULL, 0, FALSE}; 
+
 
 /****************************************************************************/
 /* redraw the output */
index b7b07a8bfee160a9de028576657e14c780ad3e0f..3ad22e268930b96b8e1266b021f17402e14da9f4 100644 (file)
@@ -40,10 +40,4 @@ void rtp_write_header(rtp_stream_info_t*, FILE*);
 void rtp_write_sample(rtp_sample_t*, FILE*);
 int rtpstream_packet(void*, packet_info*, epan_dissect_t *, const void *);
 
-/* The one and only global rtpstream_tapinfo_t structure for tshark and wireshark.
- */ 
-static rtpstream_tapinfo_t the_tapinfo_struct = 
-        {0, NULL, 0, TAP_ANALYSE, NULL, NULL, NULL, 0, FALSE}; 
-
-
 #endif /*TAP_RTP_COMMON_H_INCLUDED*/
index 72010ac1d13bf4e6660e87209f787a79709e7033..6823d4198e32cab3343572e7583fc0f6c331d920 100644 (file)
--- a/tap-rtp.c
+++ b/tap-rtp.c
 #include "register.h"
 #include "tap-rtp-common.h"
 
-
+/* The one and only global rtpstream_tapinfo_t structure for tshark and wireshark.
+ */ 
+static rtpstream_tapinfo_t the_tapinfo_struct = 
+        {0, NULL, 0, TAP_ANALYSE, NULL, NULL, NULL, 0, FALSE}; 
 
 static void
 rtp_streams_stat_draw(void *arg _U_)