diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-09-15 09:12:01 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-09-15 09:12:01 +0000 |
commit | 07c29e74e9ca2ef0003069b212b3c1ac382abf5a (patch) | |
tree | 2a97b9386cf4ebaf03438290b8bdd392e717d6de /epan/dissectors/packet-erldp.c | |
parent | eda53fd1b729d42dc26d05e7636299b65936e140 (diff) |
Convert a few more dissectors to wmem API
svn path=/trunk/; revision=52052
Diffstat (limited to 'epan/dissectors/packet-erldp.c')
-rw-r--r-- | epan/dissectors/packet-erldp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-erldp.c b/epan/dissectors/packet-erldp.c index b7936640b6..52db36e8c6 100644 --- a/epan/dissectors/packet-erldp.c +++ b/epan/dissectors/packet-erldp.c @@ -31,7 +31,7 @@ #include <epan/packet.h> #include <epan/strutil.h> -#include <epan/emem.h> +#include <epan/wmem/wmem.h> #include <epan/dissectors/packet-tcp.h> #include <epan/dissectors/packet-epmd.h> @@ -283,7 +283,7 @@ static gint dissect_etf_type_content(guint8 tag, packet_info *pinfo, tvbuff_t *t proto_tree_add_item(tree, hf_erldp_atom_cache_ref, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; if (value_str) - *value_str = ep_strdup_printf("%d", int_val); + *value_str = wmem_strdup_printf(wmem_packet_scope(), "%d", int_val); break; case SMALL_INTEGER_EXT: @@ -291,7 +291,7 @@ static gint dissect_etf_type_content(guint8 tag, packet_info *pinfo, tvbuff_t *t proto_tree_add_item(tree, hf_erldp_small_int_ext, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; if (value_str) - *value_str = ep_strdup_printf("%d", int_val); + *value_str = wmem_strdup_printf(wmem_packet_scope(), "%d", int_val); break; case INTEGER_EXT: @@ -299,7 +299,7 @@ static gint dissect_etf_type_content(guint8 tag, packet_info *pinfo, tvbuff_t *t proto_tree_add_item(tree, hf_erldp_int_ext, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; if (value_str) - *value_str = ep_strdup_printf("%d", int_val); + *value_str = wmem_strdup_printf(wmem_packet_scope(), "%d", int_val); break; case PID_EXT: |