diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-10-11 06:38:12 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-10-11 06:38:12 +0000 |
commit | b72c9055a09610f2bd3305eae533ade8f22c08b7 (patch) | |
tree | 0e94a346eda6c20ebcb9f61a8739c5ad31c2bde2 /epan/dissectors | |
parent | a9f80a5718317babeb0a09d54b46448c90306bbf (diff) |
Make the "per_choice_t" and "per_sequence_t" pointer arguments pointers
to const.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12253 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-per.c | 8 | ||||
-rw-r--r-- | epan/dissectors/packet-per.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c index 2b8e5df412..a0cf8e9b3d 100644 --- a/epan/dissectors/packet-per.c +++ b/epan/dissectors/packet-per.c @@ -886,7 +886,7 @@ DEBUG_ENTRY("dissect_per_constrained_integer"); 22.8 extension marker == 1 */ guint32 -dissect_per_choice(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, gint ett_index, per_choice_t *choice, char *name, guint32 *value) +dissect_per_choice(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, gint ett_index, const per_choice_t *choice, char *name, guint32 *value) { gboolean extension_present, extension_flag; int extension_root_entries; @@ -1037,7 +1037,7 @@ printf("new_offset:%d offset:%d length*8:%d\n",new_offset,offset,length*8); static char * -index_get_optional_name(per_sequence_t *sequence, int index) +index_get_optional_name(const per_sequence_t *sequence, int index) { int i; @@ -1053,7 +1053,7 @@ index_get_optional_name(per_sequence_t *sequence, int index) } static char * -index_get_extension_name(per_sequence_t *sequence, int index) +index_get_extension_name(const per_sequence_t *sequence, int index) { int i; @@ -1081,7 +1081,7 @@ index_get_extension_name(per_sequence_t *sequence, int index) 18.9 */ guint32 -dissect_per_sequence(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *parent_tree, int hf_index, gint ett_index, per_sequence_t *sequence) +dissect_per_sequence(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *parent_tree, int hf_index, gint ett_index, const per_sequence_t *sequence) { gboolean extension_present, extension_flag, optional_field_flag; proto_item *item; diff --git a/epan/dissectors/packet-per.h b/epan/dissectors/packet-per.h index 1aa640af81..682a0a7beb 100644 --- a/epan/dissectors/packet-per.h +++ b/epan/dissectors/packet-per.h @@ -90,9 +90,9 @@ extern guint32 dissect_per_integer(tvbuff_t *tvb, guint32 offset, packet_info *p extern guint32 dissect_per_constrained_integer(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, guint32 min, guint32 max, guint32 *value, proto_item **item, gboolean has_extension); -extern guint32 dissect_per_choice(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, gint ett_index, per_choice_t *choice, char *name, guint32 *value); +extern guint32 dissect_per_choice(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, gint ett_index, const per_choice_t *choice, char *name, guint32 *value); -extern guint32 dissect_per_sequence(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *parent_tree, int hf_index, gint ett_index, per_sequence_t *sequence); +extern guint32 dissect_per_sequence(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *parent_tree, int hf_index, gint ett_index, const per_sequence_t *sequence); extern guint32 dissect_per_octet_string(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, proto_tree *tree, int hf_index, int min_len, int max_len, guint32 *value_offset, guint32 *value_len); |