diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 05:36:48 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-05-14 05:36:48 +0000 |
commit | 17e10d08fbf7b6601161d3a14ccf913877cd4d47 (patch) | |
tree | 410a2df140adb3f77392d9f303c878f28ef39dfe /asn1/h245 | |
parent | c91a384702e6d17254918e2291d28bfd2deddbdd (diff) |
Use tvb_new_child_real_data().
svn path=/trunk/; revision=28357
Diffstat (limited to 'asn1/h245')
-rw-r--r-- | asn1/h245/h245.cnf | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/asn1/h245/h245.cnf b/asn1/h245/h245.cnf index c9d5d507a0..8d8038b862 100644 --- a/asn1/h245/h245.cnf +++ b/asn1/h245/h245.cnf @@ -769,8 +769,7 @@ if (h245_pi != NULL) if (gefx) { buf = ep_alloc(sizeof(guint8)); buf[0] = value; - value_tvb = tvb_new_real_data(buf, sizeof(guint8), sizeof(guint8)); - tvb_set_child_real_data_tvbuff(tvb, value_tvb); + value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint8), sizeof(guint8)); /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s); } @@ -786,8 +785,7 @@ if (h245_pi != NULL) if (gefx) { buf = ep_alloc(sizeof(guint16)); phtons(buf, value); - value_tvb = tvb_new_real_data(buf, sizeof(guint16), sizeof(guint16)); - tvb_set_child_real_data_tvbuff(tvb, value_tvb); + value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16)); /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s); } @@ -803,8 +801,7 @@ if (h245_pi != NULL) if (gefx) { buf = ep_alloc(sizeof(guint16)); phtons(buf, value); - value_tvb = tvb_new_real_data(buf, sizeof(guint16), sizeof(guint16)); - tvb_set_child_real_data_tvbuff(tvb, value_tvb); + value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16)); /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s); } @@ -820,8 +817,7 @@ if (h245_pi != NULL) if (gefx) { buf = ep_alloc(sizeof(guint32)); phtonl(buf, value); - value_tvb = tvb_new_real_data(buf, sizeof(guint32), sizeof(guint32)); - tvb_set_child_real_data_tvbuff(tvb, value_tvb); + value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32)); /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s); } @@ -837,8 +833,7 @@ if (h245_pi != NULL) if (gefx) { buf = ep_alloc(sizeof(guint32)); phtonl(buf, value); - value_tvb = tvb_new_real_data(buf, sizeof(guint32), sizeof(guint32)); - tvb_set_child_real_data_tvbuff(tvb, value_tvb); + value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32)); /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s); } |