aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimaxasncp
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-01-21 03:00:31 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-01-21 03:00:31 +0000
commitf53744b59d0db8a7c828a7e80a9c02d557bd97f5 (patch)
tree5fea3f01ac162af762e67293eea82c9af023e719 /plugins/wimaxasncp
parent6e0fcb7ab5d1e24abfdd80eb51e4537b5b2dd191 (diff)
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string(). svn path=/trunk/; revision=35603
Diffstat (limited to 'plugins/wimaxasncp')
-rw-r--r--plugins/wimaxasncp/packet-wimaxasncp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c
index 4b1f2caad6..786fc8eca0 100644
--- a/plugins/wimaxasncp/packet-wimaxasncp.c
+++ b/plugins/wimaxasncp/packet-wimaxasncp.c
@@ -1989,7 +1989,6 @@ static guint dissect_wimaxasncp_backend(
guint offset = 0;
guint16 ui16;
guint32 ui32;
- const guint8 *p;
guint8 *pmsid = NULL;
guint16 tid = 0;
gboolean dbit_show;
@@ -2000,15 +1999,13 @@ static guint dissect_wimaxasncp_backend(
* ------------------------------------------------------------------------
*/
- p = tvb_get_ptr(tvb, offset, 6);
-
if (tree)
{
- proto_tree_add_ether(
+ proto_tree_add_item(
tree, hf_wimaxasncp_msid,
- tvb, offset, 6, p);
+ tvb, offset, 6, ENC_NA);
}
- pmsid = ether_to_str(p);
+ pmsid = tvb_ether_to_str(tvb, offset);
offset += 6;