diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-26 22:07:45 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-26 22:07:45 +0000 |
commit | c3ea1560bdfb42902824fedb465ccb137b36a313 (patch) | |
tree | 5462bb9beb194a7eec24261edcbb2a50952443ce /epan/dissectors/packet-homeplug.c | |
parent | ffa7320de25b5bcb606b76a3cfd33bae52a2eab4 (diff) |
Minor cleanup related to proto_register and proto_reg_handoff
svn path=/trunk/; revision=26281
Diffstat (limited to 'epan/dissectors/packet-homeplug.c')
-rw-r--r-- | epan/dissectors/packet-homeplug.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/epan/dissectors/packet-homeplug.c b/epan/dissectors/packet-homeplug.c index a775a680e0..4c54e8c218 100644 --- a/epan/dissectors/packet-homeplug.c +++ b/epan/dissectors/packet-homeplug.c @@ -820,16 +820,12 @@ dissect_homeplug(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) ptvcursor_free(cursor); } -static dissector_handle_t homeplug_handle; void proto_reg_handoff_homeplug(void) { - static gboolean initialised = FALSE; + dissector_handle_t homeplug_handle; - if (!initialised) { - homeplug_handle = create_dissector_handle(dissect_homeplug, proto_homeplug); - dissector_add("ethertype", ETHERTYPE_HOMEPLUG, homeplug_handle); - initialised = TRUE; - } + homeplug_handle = create_dissector_handle(dissect_homeplug, proto_homeplug); + dissector_add("ethertype", ETHERTYPE_HOMEPLUG, homeplug_handle); } |