diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-24 20:07:41 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-24 20:07:41 +0000 |
commit | 830dd8e8f05e39238b97857e161821a41ff985df (patch) | |
tree | 165a5bde8cb965aa95198889f0cac87eff3932a9 /epan/dissectors/packet-p7.c | |
parent | 65c53fedb6c2a23295d280d8971f03c05343dc7d (diff) |
* Prefer col_append_str instead of col_append_fstr for constant strings
* Remove check_col guards
svn path=/trunk/; revision=30126
Diffstat (limited to 'epan/dissectors/packet-p7.c')
-rw-r--r-- | epan/dissectors/packet-p7.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-p7.c b/epan/dissectors/packet-p7.c index 367b790e71..088dd120bf 100644 --- a/epan/dissectors/packet-p7.c +++ b/epan/dissectors/packet-p7.c @@ -1326,15 +1326,11 @@ static const ber_sequence_t NumberRange_sequence[] = { static int dissect_p7_NumberRange(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - if (check_col(actx->pinfo->cinfo, COL_INFO)) { - col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (range="); - } + col_append_str(actx->pinfo->cinfo, COL_INFO, " (range="); offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, NumberRange_sequence, hf_index, ett_p7_NumberRange); - if (check_col(actx->pinfo->cinfo, COL_INFO)) { - col_append_fstr(actx->pinfo->cinfo, COL_INFO, ")"); - } + col_append_str(actx->pinfo->cinfo, COL_INFO, ")"); return offset; |