Make the "asn_namedbit *" argument to "dissect_ber_bitstring()" a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 8 Oct 2004 21:14:33 +0000 (21:14 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 8 Oct 2004 21:14:33 +0000 (21:14 +0000)
"const" pointer.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12247 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ber.c
epan/dissectors/packet-ber.h

index c166ab38924ba3be5f4fbb0eed2c4f2e5d088f2a..3494d5e6ea2aecf5b253794c3f3094f600033084 100644 (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;
 
index 66f6d65587c5b6dc6b58ef1659da8da8935155e0..a27760f22c217ffc4f6217219b21c970fa613bb4 100644 (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);