diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-10-25 20:24:31 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-10-25 20:24:31 +0000 |
commit | 05c1929f1d51ef94a5827147aee61d2320434783 (patch) | |
tree | 3e6cc68f2dc569fe027498b7deb3d0574cd99c09 /plugins/sercosiii | |
parent | 94c73a47c9e361b6eeeecf53e9b600f9cf1b77a9 (diff) |
proto_register/proto_reg_handoff; Various small cleanup and bug-fixing
remove unnecessary #include prefs.f and emem.h in a few cases...
svn path=/trunk/; revision=26554
Diffstat (limited to 'plugins/sercosiii')
-rw-r--r-- | plugins/sercosiii/packet-sercosiii_1v1.c | 17 |
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); } |