From 149de99d6866105dc07b9ec180d4ce0db3b777e1 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 3 Nov 2013 12:57:58 +0000 Subject: Have rose_ctx_t passed into subdissectors instead of using pinfo->private_data. svn path=/trunk/; revision=53061 --- asn1/isdn-sup/packet-isdn-sup-template.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'asn1/isdn-sup/packet-isdn-sup-template.c') diff --git a/asn1/isdn-sup/packet-isdn-sup-template.c b/asn1/isdn-sup/packet-isdn-sup-template.c index 8354f72d0d..ed0f6b3567 100644 --- a/asn1/isdn-sup/packet-isdn-sup-template.c +++ b/asn1/isdn-sup/packet-isdn-sup-template.c @@ -134,9 +134,9 @@ static const isdn_sup_err_t *get_err(gint32 errcode) { /*--- dissect_isdn_sup_arg ------------------------------------------------------*/ static int -dissect_isdn_sup_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { +dissect_isdn_sup_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { int offset; - rose_ctx_t *rctx; + rose_ctx_t *rctx = get_rose_ctx(data); gint32 opcode = 0; const gchar *p; const isdn_sup_op_t *op_ptr; @@ -144,7 +144,7 @@ dissect_isdn_sup_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * proto_tree *isdn_sup_tree; offset = 0; - rctx = get_rose_ctx(pinfo->private_data); + DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 1) /* invoke */ return offset; @@ -182,9 +182,9 @@ dissect_isdn_sup_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * /*--- dissect_isdn_sup_res -------------------------------------------------------*/ static int -dissect_isdn_sup_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { +dissect_isdn_sup_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gint offset; - rose_ctx_t *rctx; + rose_ctx_t *rctx = get_rose_ctx(data); gint32 opcode = 0; const gchar *p; const isdn_sup_op_t *op_ptr; @@ -192,7 +192,7 @@ dissect_isdn_sup_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * proto_tree *isdn_sup_tree; offset = 0; - rctx = get_rose_ctx(pinfo->private_data); + DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 2) /* returnResult */ return offset; @@ -229,9 +229,9 @@ dissect_isdn_sup_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * /*--- dissect_isdn_sup_err ------------------------------------------------------*/ static int -dissect_isdn_sup_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { +dissect_isdn_sup_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { int offset; - rose_ctx_t *rctx; + rose_ctx_t *rctx = get_rose_ctx(data); gint32 errcode; const isdn_sup_err_t *err_ptr; const gchar *p; @@ -239,7 +239,7 @@ dissect_isdn_sup_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * proto_tree *isdn_sup_tree; offset = 0; - rctx = get_rose_ctx(pinfo->private_data); + DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 3) /* returnError */ return offset; -- cgit v1.2.3