aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-02-22 23:53:08 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-02-22 23:53:08 +0000
commitac463593c42e8040abf996152f7659f94944afa7 (patch)
treef8a603cd9f61b2f8ba414ead70f793db01a0b55b /epan
parent13729e9c1127d10926ada2b29a958ab98a954280 (diff)
No need for static dissector_handle_t.
svn path=/trunk/; revision=47827
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-mih.c3
-rw-r--r--epan/dissectors/packet-wreth.c2
-rw-r--r--epan/dissectors/packet-xmpp.c4
3 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-mih.c b/epan/dissectors/packet-mih.c
index eee251a177..5b8e8e356e 100644
--- a/epan/dissectors/packet-mih.c
+++ b/epan/dissectors/packet-mih.c
@@ -4747,7 +4747,8 @@ void proto_register_mih(void)
/*dissector handoff*/
void proto_reg_handoff_mih(void)
{
- static dissector_handle_t mih_handle;
+ dissector_handle_t mih_handle;
+
mih_handle = create_dissector_handle(dissect_mih, proto_mih);
/*Layer 3 handle*/
dissector_add_uint("udp.port", MIH_PORT, mih_handle);
diff --git a/epan/dissectors/packet-wreth.c b/epan/dissectors/packet-wreth.c
index 88f2f34511..babb997c79 100644
--- a/epan/dissectors/packet-wreth.c
+++ b/epan/dissectors/packet-wreth.c
@@ -1995,7 +1995,7 @@ void proto_register_wreth(void)
void proto_reg_handoff_wreth(void)
{
- static dissector_handle_t wreth_handle;
+ dissector_handle_t wreth_handle;
wreth_handle = create_dissector_handle(dissect_wreth, wreth_proto);
dissector_add_uint("ethertype", WRETH_PORT, wreth_handle);
diff --git a/epan/dissectors/packet-xmpp.c b/epan/dissectors/packet-xmpp.c
index 8e22faa6e3..2a1cf9c27c 100644
--- a/epan/dissectors/packet-xmpp.c
+++ b/epan/dissectors/packet-xmpp.c
@@ -1420,12 +1420,10 @@ proto_register_xmpp(void) {
void
proto_reg_handoff_xmpp(void) {
- static dissector_handle_t xmpp_handle;
+ dissector_handle_t xmpp_handle;
ssl_handle = find_dissector("ssl");
-
xml_handle = find_dissector("xml");
-
xmpp_handle = find_dissector("xmpp");
dissector_add_uint("tcp.port", XMPP_PORT, xmpp_handle);