diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-09-15 15:11:11 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-09-15 15:11:11 +0000 |
commit | 78508839049dfc7163096b13db9e89f9091708f6 (patch) | |
tree | 436cba2be2b1cef227f8b6ae3f2b08b2499374cb /epan/dissectors/packet-netanalyzer.c | |
parent | c5ffff76d87088bd66834af0ce8f2694d53fd54b (diff) |
emem -> wmem
svn path=/trunk/; revision=52063
Diffstat (limited to 'epan/dissectors/packet-netanalyzer.c')
-rw-r--r-- | epan/dissectors/packet-netanalyzer.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-netanalyzer.c b/epan/dissectors/packet-netanalyzer.c index cec6eda34c..ce4002c10f 100644 --- a/epan/dissectors/packet-netanalyzer.c +++ b/epan/dissectors/packet-netanalyzer.c @@ -60,6 +60,7 @@ #include <glib.h> #include <epan/packet.h> +#include <epan/wmem/wmem.h> #include <expert.h> @@ -207,12 +208,12 @@ dissect_netanalyzer_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } else { - emem_strbuf_t *strbuf; + wmem_strbuf_t *strbuf; gboolean first = TRUE; ti_status = proto_tree_add_uint_format(netanalyzer_header_tree, hf_netanalyzer_status, tvb, 0, 1, packet_status, "Status: Error present (expand tree for details)"); - strbuf = ep_strbuf_new_label(""); + strbuf = wmem_strbuf_new_label(wmem_epan_scope()); for (idx = 0; idx < 8; idx++) { if (packet_status & (1 << idx)) @@ -223,12 +224,12 @@ dissect_netanalyzer_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } else { - ep_strbuf_append(strbuf, ", "); + wmem_strbuf_append(strbuf, ", "); } - ep_strbuf_append(strbuf, msk_strings[idx]); + wmem_strbuf_append(strbuf, msk_strings[idx]); } } - proto_item_append_text(ti, "%s)", strbuf->str); + proto_item_append_text(ti, "%s)", wmem_strbuf_get_str(strbuf)); } netanalyzer_status_tree = proto_item_add_subtree(ti_status, ett_netanalyzer_status); @@ -270,7 +271,7 @@ dissect_netanalyzer_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) (tvb_get_guint8(tvb, INFO_TYPE_OFFSET) == 0x00) ) { #define MAX_BUFFER 255 - szTemp=(guchar *)ep_alloc(MAX_BUFFER); + szTemp=(guchar *)wmem_alloc(wmem_epan_scope(), MAX_BUFFER); /* everything ok */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "netANALYZER"); |