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-xtp.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-xtp.c')
-rw-r--r-- | epan/dissectors/packet-xtp.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c index 4b15cb41aa..548de6ec45 100644 --- a/epan/dissectors/packet-xtp.c +++ b/epan/dissectors/packet-xtp.c @@ -111,9 +111,6 @@ static const value_string diag_val_vals[] = { { 0, NULL } }; -/* Forward declaration we need below */ -void proto_reg_handoff_xtp(void); - /* Initialize the protocol and registered fields */ static int proto_xtp = -1; /* common header */ @@ -1322,13 +1319,8 @@ proto_register_xtp(void) void proto_reg_handoff_xtp(void) { - static gboolean inited = FALSE; - - if (!inited) { - dissector_handle_t xtp_handle; + dissector_handle_t xtp_handle; - xtp_handle = new_create_dissector_handle(dissect_xtp, proto_xtp); - dissector_add("ip.proto", IP_PROTO_XTP, xtp_handle); - inited = TRUE; - } + xtp_handle = new_create_dissector_handle(dissect_xtp, proto_xtp); + dissector_add("ip.proto", IP_PROTO_XTP, xtp_handle); } |