diff options
author | Michael Mann <mmann78@netscape.net> | 2013-06-14 01:56:28 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-06-14 01:56:28 +0000 |
commit | fa5b45834b3199bc3c47b3d328d54e0504d7b942 (patch) | |
tree | 721daa2acddb00e486c5c62923f7b6841b4c13eb /epan/dissectors/packet-quakeworld.c | |
parent | 0f0c111119811cf1c6c9353efdaaef302aca5930 (diff) |
Remove check_col() and the occasional tree.
svn path=/trunk/; revision=49921
Diffstat (limited to 'epan/dissectors/packet-quakeworld.c')
-rw-r--r-- | epan/dissectors/packet-quakeworld.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-quakeworld.c b/epan/dissectors/packet-quakeworld.c index dcd1fa4acd..c3213e413b 100644 --- a/epan/dissectors/packet-quakeworld.c +++ b/epan/dissectors/packet-quakeworld.c @@ -532,11 +532,9 @@ dissect_quakeworld_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo, } } - if (check_col(pinfo->cinfo, COL_INFO)) { - col_append_fstr(pinfo->cinfo, COL_INFO, " %s", command); - } + col_append_fstr(pinfo->cinfo, COL_INFO, " %s", command); - if (text_tree && !command_finished) { + if (!command_finished) { proto_tree_add_string(text_tree, hf_quakeworld_connectionless_command, tvb, offset, command_len, command); } @@ -676,8 +674,7 @@ dissect_quakeworld(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) DIR_C2S : DIR_S2C; col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKEWORLD"); - if (check_col(pinfo->cinfo, COL_INFO)) - col_add_str(pinfo->cinfo, COL_INFO, val_to_str(direction, + col_add_str(pinfo->cinfo, COL_INFO, val_to_str(direction, names_direction, "%u")); if (tree) { |