aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tte.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-02-07 22:07:49 +0000
committerBill Meier <wmeier@newsguy.com>2013-02-07 22:07:49 +0000
commit900d29a95eae9a08aa7aec08f6a319ba5265dc80 (patch)
tree4e40afd390fd39757dd9553c559284f5ef9be751 /epan/dissectors/packet-tte.c
parentcfff564398e06c2a0be00c3378369d694b0d078c (diff)
Use proto_registrar_get_id_byname() instead of proto_registrar_get_byname();
The code is slightly cleaner and the use of proto_registrar_get_id_byname() enables an additional checkhf test to reduce false positives. Also: comment out 2 unused hf_... vars in packet-smb-sidsnooping.c (found by checkhf) svn path=/trunk/; revision=47541
Diffstat (limited to 'epan/dissectors/packet-tte.c')
-rw-r--r--epan/dissectors/packet-tte.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-tte.c b/epan/dissectors/packet-tte.c
index 88798cca09..49bfe94c6f 100644
--- a/epan/dissectors/packet-tte.c
+++ b/epan/dissectors/packet-tte.c
@@ -179,7 +179,7 @@ proto_reg_handoff_tte(void)
{
heur_dissector_add("eth", dissect_tte, proto_tte);
- hf_eth_dst = proto_registrar_get_byname ("eth.dst")->id;
- hf_eth_src = proto_registrar_get_byname ("eth.src")->id;
- hf_eth_type = proto_registrar_get_byname ("eth.type")->id;
+ hf_eth_dst = proto_registrar_get_id_byname ("eth.dst");
+ hf_eth_src = proto_registrar_get_id_byname ("eth.src");
+ hf_eth_type = proto_registrar_get_id_byname ("eth.type");
}