"dissect_ber_sequence()" doesn't modify the "ber_sequence" structure

passed to it; make that argument a const pointer.

svn path=/trunk/; revision=12244
This commit is contained in:
Guy Harris 2004-10-08 20:24:23 +00:00
parent 5bd4eb15a8
commit c5c8453097
2 changed files with 2 additions and 2 deletions

View File

@ -449,7 +449,7 @@ dissect_ber_boolean(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int off
/* this function dissects a BER sequence
*/
int dissect_ber_sequence(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, ber_sequence *seq, gint hf_id, gint ett_id) {
int dissect_ber_sequence(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const ber_sequence *seq, gint hf_id, gint ett_id) {
guint8 class;
gboolean pc, ind;
guint32 tag;

View File

@ -105,7 +105,7 @@ typedef struct _ber_sequence {
/* this function dissects a BER sequence
*/
extern int dissect_ber_sequence(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, ber_sequence *seq, gint hf_id, gint ett_id);
extern int dissect_ber_sequence(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const ber_sequence *seq, gint hf_id, gint ett_id);
typedef struct _ber_choice {