aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2007-01-26 12:14:06 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2007-01-26 12:14:06 +0000
commitb731274da6908898e1f895f5b2523185b0217377 (patch)
treec76e01f26cd5d18e1433dfa14fc63fe7f96e1b70
parent9c332d679948abc850efc1231bcc256d231c644f (diff)
Use previously unused hf_cops_obj_c_type (cops.c_type) field
svn path=/trunk/; revision=20566
-rw-r--r--epan/dissectors/packet-cops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cops.c b/epan/dissectors/packet-cops.c
index aabc01e112..655f54722e 100644
--- a/epan/dissectors/packet-cops.c
+++ b/epan/dissectors/packet-cops.c
@@ -1039,7 +1039,8 @@ static int dissect_cops_object(tvbuff_t *tvb, packet_info *pinfo, guint8 op_code
offset++;
type_str = cops_c_type_to_str(c_num, c_type);
- proto_tree_add_text(obj_tree, tvb, offset, 1, "C-Type: %s%s%u%s",
+ proto_tree_add_uint_format_value(obj_tree, hf_cops_obj_c_type, tvb, offset, 1, c_type,
+ "%s%s%u%s",
type_str,
strlen(type_str) ? " (" : "",
c_type,