From c929e42eb41a34045bf15457b1b5175e01ae2055 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sat, 26 Jan 2013 22:43:34 +0000 Subject: Fix various instances of unused hf[] entries found by checkhf. svn path=/trunk/; revision=47312 --- epan/dissectors/packet-ldp.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-ldp.c') diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index e326c8ebe8..8ae20cef46 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -54,8 +54,8 @@ void proto_reg_handoff_ldp(void); static int proto_ldp = -1; /* Delete the following if you do not use it, or add to it if you need */ -static int hf_ldp_req = -1; -static int hf_ldp_rsp = -1; +/* static int hf_ldp_req = -1; */ +/* static int hf_ldp_rsp = -1; */ static int hf_ldp_version = -1; static int hf_ldp_pdu_len = -1; static int hf_ldp_lsr = -1; @@ -215,7 +215,7 @@ static int hf_ldp_tlv_set_prio = -1; static int hf_ldp_tlv_hold_prio = -1; static int hf_ldp_tlv_route_pinning = -1; static int hf_ldp_tlv_resource_class = -1; -static int hf_ldp_tlv_diffserv = -1; +/* static int hf_ldp_tlv_diffserv = -1; */ static int hf_ldp_tlv_diffserv_type = -1; static int hf_ldp_tlv_diffserv_mapnb = -1; static int hf_ldp_tlv_diffserv_map = -1; @@ -3063,14 +3063,18 @@ void proto_register_ldp(void) { static hf_register_info hf[] = { +/** { &hf_ldp_req, - /* Change the following to the type you need */ + /-* Change the following to the type you need *-/ { "Request", "ldp.req", FT_BOOLEAN, BASE_NONE, NULL, 0x0, NULL, HFILL }}, +**/ +/** { &hf_ldp_rsp, { "Response", "ldp.rsp", FT_BOOLEAN, BASE_NONE, NULL, 0x0, NULL, HFILL }}, +**/ { &hf_ldp_version, { "Version", "ldp.hdr.version", FT_UINT16, BASE_DEC, @@ -3705,9 +3709,11 @@ proto_register_ldp(void) { "Resource Class", "ldp.msg.tlv.resource_class", FT_UINT32, BASE_HEX, NULL, 0, "Resource Class (Color)", HFILL}}, +/** { &hf_ldp_tlv_diffserv, { "Diff-Serv TLV", "ldp.msg.tlv.diffserv", FT_NONE, BASE_NONE, NULL, 0, "Diffserv TLV", HFILL}}, +**/ { &hf_ldp_tlv_diffserv_type, { "LSP Type", "ldp.msg.tlv.diffserv.type", FT_UINT8, BASE_DEC, -- cgit v1.2.3