aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-08 21:14:33 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-08 21:14:33 +0000
commit3acb84d24a16ce039dcac9d6d41e2acc45ec478c (patch)
treea834298487d8e912f426c028e12895d2fb6cb478 /epan/dissectors
parent7b287f6696de4bcf277e27d5f6dcbd77cab79816 (diff)
Make the "asn_namedbit *" argument to "dissect_ber_bitstring()" a
"const" pointer. svn path=/trunk/; revision=12247
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ber.c4
-rw-r--r--epan/dissectors/packet-ber.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index c166ab3892..3494d5e6ea 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -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;
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h
index 66f6d65587..a27760f22c 100644
--- a/epan/dissectors/packet-ber.h
+++ b/epan/dissectors/packet-ber.h
@@ -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);