From dfa2156e301539929a12dda54752c778c3ee7a39 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Fri, 14 Jun 2013 02:50:46 +0000 Subject: Remove check_col() and the occasional tree. svn path=/trunk/; revision=49923 --- epan/dissectors/packet-starteam.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'epan/dissectors/packet-starteam.c') diff --git a/epan/dissectors/packet-starteam.c b/epan/dissectors/packet-starteam.c index 5597c2a461..1be3219c11 100644 --- a/epan/dissectors/packet-starteam.c +++ b/epan/dissectors/packet-starteam.c @@ -490,14 +490,13 @@ dissect_starteam(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "StarTeam"); - if(check_col(pinfo->cinfo, COL_INFO)){ - /* This is a trick to know whether this is the first PDU in this packet or not */ - if(iPreviousFrameNumber != (gint) pinfo->fd->num){ - col_clear(pinfo->cinfo, COL_INFO); - } else { - col_append_str(pinfo->cinfo, COL_INFO, " | "); - } + /* This is a trick to know whether this is the first PDU in this packet or not */ + if(iPreviousFrameNumber != (gint) pinfo->fd->num){ + col_clear(pinfo->cinfo, COL_INFO); + } else { + col_append_str(pinfo->cinfo, COL_INFO, " | "); } + iPreviousFrameNumber = pinfo->fd->num; if(tvb_length(tvb) >= 16){ guint32 iCommand = 0; @@ -514,10 +513,8 @@ dissect_starteam(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if(tvb_length_remaining(tvb, offset) >= 66){ iCommand = tvb_get_letohl(tvb, offset + 62); } - if(check_col(pinfo->cinfo, COL_INFO)){ - col_append_str(pinfo->cinfo, COL_INFO, + col_append_str(pinfo->cinfo, COL_INFO, val_to_str_ext(iCommand, &starteam_opcode_vals_ext, "Unknown (0x%02x)")); - } } if(tree){ -- cgit v1.2.3