diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-08-09 15:07:35 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-08-09 15:07:35 +0000 |
commit | 0a60e46adf9869c1f095410163073395624a0612 (patch) | |
tree | 77c13d5c66dc862613b0eb1e8a6fed87876425be /plugins/wimax/msg_pmc.c | |
parent | cdb8e2c6b7397fe92de7e7e957b6231d26467378 (diff) | |
download | wireshark-0a60e46adf9869c1f095410163073395624a0612.tar.gz |
'if(proto_... == -1)' not req'd; Don't register ett[] more than once;
svn path=/trunk/; revision=29351
Diffstat (limited to 'plugins/wimax/msg_pmc.c')
-rw-r--r-- | plugins/wimax/msg_pmc.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/plugins/wimax/msg_pmc.c b/plugins/wimax/msg_pmc.c index 64a6435f1f..f55ae7b15b 100644 --- a/plugins/wimax/msg_pmc.c +++ b/plugins/wimax/msg_pmc.c @@ -172,26 +172,20 @@ void proto_register_mac_mgmt_msg_pmc_req(void) } }; - if (proto_mac_mgmt_msg_pmc_req_decoder == -1) { - proto_mac_mgmt_msg_pmc_req_decoder = proto_register_protocol ( - "WiMax PMC-REQ/RSP Messages", /* name */ - "WiMax PMC-REQ/RSP (pmc)", /* short name */ - "wmx.pmc" /* abbrev */ - ); + proto_mac_mgmt_msg_pmc_req_decoder = proto_register_protocol ( + "WiMax PMC-REQ/RSP Messages", /* name */ + "WiMax PMC-REQ/RSP (pmc)", /* short name */ + "wmx.pmc" /* abbrev */ + ); - proto_register_field_array(proto_mac_mgmt_msg_pmc_req_decoder, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); - } + proto_register_field_array(proto_mac_mgmt_msg_pmc_req_decoder, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); } /* Register Wimax Mac Payload Protocol and Dissector */ void proto_register_mac_mgmt_msg_pmc_rsp(void) { - if (proto_mac_mgmt_msg_pmc_rsp_decoder == -1) { - proto_mac_mgmt_msg_pmc_rsp_decoder = proto_mac_mgmt_msg_pmc_req_decoder; - - proto_register_subtree_array(ett, array_length(ett)); - } + proto_mac_mgmt_msg_pmc_rsp_decoder = proto_mac_mgmt_msg_pmc_req_decoder; } /* Decode PMC-REQ messages. */ |