diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-07 12:56:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-07 12:56:21 +0000 |
commit | 4c45795dab6c6ab9ec4e42cc5cfca73d60279202 (patch) | |
tree | c05c34e9177a1439403b1f180e7e42caf4b01bb7 /epan/proto.c | |
parent | 3662eb81fe3cf4dff1b67de2282b9951ae546b91 (diff) | |
download | wireshark-4c45795dab6c6ab9ec4e42cc5cfca73d60279202.tar.gz wireshark-4c45795dab6c6ab9ec4e42cc5cfca73d60279202.tar.bz2 wireshark-4c45795dab6c6ab9ec4e42cc5cfca73d60279202.zip |
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
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 0a36548286..e93a0543c2 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -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 |