Constify a pointer, so that the array of pointers to ett_ values can be
const, although the pointers can't point to consts (as the values get filled in as they're registered). svn path=/trunk/; revision=12981
This commit is contained in:
parent
3662eb81fe
commit
4c45795dab
|
@ -2695,10 +2695,10 @@ proto_register_field_init(header_field_info *hfinfo, int parent)
|
|||
}
|
||||
|
||||
void
|
||||
proto_register_subtree_array(gint **indices, int num_indices)
|
||||
proto_register_subtree_array(gint *const *indices, int num_indices)
|
||||
{
|
||||
int i;
|
||||
gint **ptr = indices;
|
||||
gint *const *ptr = indices;
|
||||
|
||||
/*
|
||||
* Make sure we haven't already allocated the array of "tree is
|
||||
|
|
|
@ -878,7 +878,7 @@ proto_register_field_array(int parent, hf_register_info *hf, int num_records);
|
|||
@param indices array of ett indices
|
||||
@param num_indices the number of records in indices */
|
||||
extern void
|
||||
proto_register_subtree_array(gint **indices, int num_indices);
|
||||
proto_register_subtree_array(gint *const *indices, int num_indices);
|
||||
|
||||
/** Returns number of items (protocols or header fields) registered.
|
||||
@return the number of items */
|
||||
|
|
Loading…
Reference in New Issue