summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-teamspeak2.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-01-26 18:54:53 +0000
committerBill Meier <wmeier@newsguy.com>2013-01-26 18:54:53 +0000
commit0960e508e4fdac8449dec1a901c146b977e17b7f (patch)
tree56ca52ea32e5ca23f6df21eb4d8e6b9c43d698d0 /epan/dissectors/packet-teamspeak2.c
parent33df8647d5c610b657d8c68b0982e4f95f348f99 (diff)
downloadwireshark-0960e508e4fdac8449dec1a901c146b977e17b7f.tar.gz
Comment out cases of unused hf array entries found by checkhf.
svn path=/trunk/; revision=47302
Diffstat (limited to 'epan/dissectors/packet-teamspeak2.c')
-rw-r--r--epan/dissectors/packet-teamspeak2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-teamspeak2.c b/epan/dissectors/packet-teamspeak2.c
index ba8ff0ca32..55cb1737ba 100644
--- a/epan/dissectors/packet-teamspeak2.c
+++ b/epan/dissectors/packet-teamspeak2.c
@@ -234,7 +234,7 @@ static int hf_ts2_crc32 = -1;
static int hf_ts2_ackto = -1;
static int hf_ts2_seqnum = -1;
static int hf_ts2_protocol_string = -1;
-static int hf_ts2_string = -1;
+/* static int hf_ts2_string = -1; */
static int hf_ts2_registeredlogin = -1;
static int hf_ts2_name = -1;
static int hf_ts2_password = -1;
@@ -435,7 +435,7 @@ static void ts2_standard_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
fragment_number = tvb_get_letohs(tvb, 18);
frag_msg = fragment_add_seq_check(tvb, 24, pinfo, type, msg_fragment_table, msg_reassembled_table, frag->frag_num, tvb_length_remaining(tvb, 24), fragment_number);
new_tvb = process_reassembled_data(tvb, 24, pinfo,"Reassembled TeamSpeak2", frag_msg, &msg_frag_items, NULL, ts2_tree);
- if (frag_msg)
+ if (frag_msg) /* XXX: should be if (new_tvb) ?? */
{ /* Reassembled */
col_append_str(pinfo->cinfo, COL_INFO, " (Message Reassembled)");
}
@@ -903,12 +903,14 @@ void proto_register_ts2(void)
NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_ts2_string,
{ "String", "ts2.string",
FT_STRING, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_ts2_registeredlogin,
{ "Registered Login", "ts2.registeredlogin",
FT_BOOLEAN, BASE_NONE,