Make the "asn_namedbit *" argument to "dissect_ber_bitstring()" a

"const" pointer.

svn path=/trunk/; revision=12247
This commit is contained in:
Guy Harris 2004-10-08 21:14:33 +00:00
parent 7b287f6696
commit 3acb84d24a
2 changed files with 3 additions and 3 deletions

View File

@ -931,7 +931,7 @@ dissect_ber_generalized_time(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb
}
/* 8.6 Encoding of a bitstring value */
int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, asn_namedbit *named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const asn_namedbit *named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
{
guint8 class;
gboolean pc, ind;
@ -941,7 +941,7 @@ int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree
int end_offset;
proto_item *item = NULL;
proto_tree *tree = NULL;
asn_namedbit *nb;
const asn_namedbit *nb;
char *sep;
gboolean term;

View File

@ -151,7 +151,7 @@ typedef struct _asn_namedbit {
} asn_namedbit;
/* this function dissects a BER BIT-STRING
*/
extern int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, asn_namedbit *named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
extern int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const asn_namedbit *named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
extern int dissect_ber_bitstring32(gboolean implicit_tag, packet_info *pinfo, proto_tree *parent_tree, tvbuff_t *tvb, int offset, int **bit_fields, gint hf_id, gint ett_id, tvbuff_t **out_tvb);