diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-06-12 08:24:54 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-06-12 08:24:54 +0000 |
commit | 2e8347a964199dc1252871f95651e1b26d78a58c (patch) | |
tree | cf9a27e1b02d9c33dd89899ac9e283bff7c06795 | |
parent | 4131f8fa31dc14f808316c58b0d76cfb6a711c75 (diff) |
no need for check_col()
svn path=/trunk/; revision=49898
-rw-r--r-- | epan/dissectors/packet-teamspeak2.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-teamspeak2.c b/epan/dissectors/packet-teamspeak2.c index c7a6bcf73f..27b12be66d 100644 --- a/epan/dissectors/packet-teamspeak2.c +++ b/epan/dissectors/packet-teamspeak2.c @@ -723,12 +723,10 @@ static void dissect_ts2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "TS2"); - if (check_col(pinfo->cinfo, COL_INFO)) { - if(klass==TS2C_ACK) - col_add_fstr(pinfo->cinfo, COL_INFO, "Class: %s", val_to_str(klass, classnames, "Unknown (0x%02x)")); - else - col_add_fstr(pinfo->cinfo, COL_INFO, "Type: %s, Class: %s", val_to_str(type, typenames, "Unknown (0x%02x)"), val_to_str(klass, classnames, "Unknown (0x%02x)")); - } + if(klass==TS2C_ACK) + col_add_fstr(pinfo->cinfo, COL_INFO, "Class: %s", val_to_str(klass, classnames, "Unknown (0x%02x)")); + else + col_add_fstr(pinfo->cinfo, COL_INFO, "Type: %s, Class: %s", val_to_str(type, typenames, "Unknown (0x%02x)"), val_to_str(klass, classnames, "Unknown (0x%02x)")); /* XXX: We need to do all the non GUI stuff whether or not if(tree) */ /* Do only once by checking visited ? */ |