Skip to content

Commit

Permalink
no need for check_col()
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=49898
  • Loading branch information
martin-kaiser committed Jun 12, 2013
1 parent 4131f8f commit 2e8347a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions epan/dissectors/packet-teamspeak2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? */
Expand Down

0 comments on commit 2e8347a

Please sign in to comment.