aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gearman.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-06-26 20:33:02 -0400
committerMichael Mann <mmann78@netscape.net>2014-06-29 13:10:02 +0000
commitfe4b7ee625c046bc09a7d8ae55afb0e16cb17fc3 (patch)
treec4311cf830bd0ccc100f7a59808f39609ba02b24 /epan/dissectors/packet-gearman.c
parente1a8c9599fadc787253115316c549e849f377fd2 (diff)
convert to proto_tree_add_subtree[_format]
Change-Id: If110de1e0555637264f86f1508858d569871a9c7 Reviewed-on: https://code.wireshark.org/review/2675 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gearman.c')
-rw-r--r--epan/dissectors/packet-gearman.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gearman.c b/epan/dissectors/packet-gearman.c
index cb7004e470..93d1dfe5ac 100644
--- a/epan/dissectors/packet-gearman.c
+++ b/epan/dissectors/packet-gearman.c
@@ -206,9 +206,8 @@ dissect_binary_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
ti = proto_tree_add_item(tree, proto_gearman, tvb, 0, -1, ENC_NA);
gearman_tree = proto_item_add_subtree(ti, ett_gearman);
- ti = proto_tree_add_text(gearman_tree, tvb, 0, GEARMAN_COMMAND_HEADER_SIZE+size,
+ command_tree = proto_tree_add_subtree_format(gearman_tree, tvb, 0, GEARMAN_COMMAND_HEADER_SIZE+size, ett_gearman_command, NULL,
"[%s] %s(%d) LEN=%d", magic_code, val_to_str(type, gearman_command_names, "Unknown (0x%08x)"), type, size);
- command_tree = proto_item_add_subtree(ti, ett_gearman_command);
proto_tree_add_string(command_tree, hf_gearman_magic_code, tvb, 0, 4, magic_code);
proto_tree_add_item(command_tree, hf_gearman_pkt_type, tvb, 4, 4, ENC_BIG_ENDIAN);