diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-09-26 22:07:45 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-09-26 22:07:45 +0000 |
commit | bbec7929c09f36fd4d812db41bf8cfbad15b05fd (patch) | |
tree | 5462bb9beb194a7eec24261edcbb2a50952443ce /epan/dissectors/packet-xtp.c | |
parent | 824ee3deb73d681f513a0d79d54d433e3eef56f4 (diff) |
Minor cleanup related to proto_register and proto_reg_handoff
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26281 f5534014-38df-0310-8fa8-9805f1628bb7
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); } |