aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sflow.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
committerMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
commit98492c561948b8d08c8c39e61a6f2c8b31cb344f (patch)
treec87f8e4302c3e9172a21a320e9e9e56baa301b21 /epan/dissectors/packet-sflow.c
parentfdead4df94f6cd253c6768369805732f35a7d9e2 (diff)
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'epan/dissectors/packet-sflow.c')
-rw-r--r--epan/dissectors/packet-sflow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sflow.c b/epan/dissectors/packet-sflow.c
index 398cf44d41..30759ba115 100644
--- a/epan/dissectors/packet-sflow.c
+++ b/epan/dissectors/packet-sflow.c
@@ -872,7 +872,6 @@ dissect_sflow_245_address_type(tvbuff_t *tvb, packet_info *pinfo,
struct sflow_address_details *addr_detail) {
guint32 addr_type;
int len;
- proto_item *pi;
addr_type = tvb_get_ntohl(tvb, offset);
offset += 4;
@@ -896,8 +895,8 @@ dissect_sflow_245_address_type(tvbuff_t *tvb, packet_info *pinfo,
the address type and thus at least advance the offset by 4.
Note that we have a problem, though. */
len = 0;
- pi = proto_tree_add_text(tree, tvb, offset - 4, 4, "Unknown address type (%u)", addr_type);
- expert_add_info(pinfo, pi, &ei_sflow_invalid_address_type);
+ proto_tree_add_expert_format(tree, pinfo, &ei_sflow_invalid_address_type, tvb,
+ offset - 4, 4, "Unknown address type (%u)", addr_type);
}
if (addr_detail) {