diff options
author | Michael Mann <mmann78@netscape.net> | 2013-11-03 12:57:58 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-11-03 12:57:58 +0000 |
commit | 149de99d6866105dc07b9ec180d4ce0db3b777e1 (patch) | |
tree | 6533efa45f0acb10d741ffce1f0cfafb658d7c25 /asn1/isdn-sup | |
parent | 0dc80637daa1990f5b091e33a9b2da0f9e8802e5 (diff) |
Have rose_ctx_t passed into subdissectors instead of using pinfo->private_data.
svn path=/trunk/; revision=53061
Diffstat (limited to 'asn1/isdn-sup')
-rw-r--r-- | asn1/isdn-sup/packet-isdn-sup-template.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; |