aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sercosiii
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-25 20:24:31 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-25 20:24:31 +0000
commitdf673141abd1494325bd431df397f1257109e99b (patch)
tree3e6cc68f2dc569fe027498b7deb3d0574cd99c09 /plugins/sercosiii
parent8acb511754bf1a352872423ba5f7369a85ac14f2 (diff)
proto_register/proto_reg_handoff; Various small cleanup and bug-fixing
remove unnecessary #include prefs.f and emem.h in a few cases... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26554 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/sercosiii')
-rw-r--r--plugins/sercosiii/packet-sercosiii_1v1.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/plugins/sercosiii/packet-sercosiii_1v1.c b/plugins/sercosiii/packet-sercosiii_1v1.c
index ddbce53e12..8c65ecf920 100644
--- a/plugins/sercosiii/packet-sercosiii_1v1.c
+++ b/plugins/sercosiii/packet-sercosiii_1v1.c
@@ -37,11 +37,6 @@
#include "packet-sercosiii.h"
-static int global_siii_eth_type = ETHERTYPE_SERCOS;
-
-/* Forward declaration we need below */
-void proto_reg_handoff_sercosiii(void);
-
/* Initialize the protocol and registered fields */
static gint proto_siii = -1;
@@ -125,14 +120,8 @@ proto_register_sercosiii(void)
void
proto_reg_handoff_sercosiii(void)
{
- static gboolean inited = FALSE;
-
- if( !inited ) {
+ dissector_handle_t siii_handle;
- dissector_handle_t siii_handle;
-
- siii_handle = create_dissector_handle(dissect_siii, proto_siii);
- dissector_add("ethertype", global_siii_eth_type, siii_handle);
- inited = TRUE;
- }
+ siii_handle = create_dissector_handle(dissect_siii, proto_siii);
+ dissector_add("ethertype", ETHERTYPE_SERCOS, siii_handle);
}