diff options
author | Guy Harris <gharris@sonic.net> | 2020-06-20 15:51:45 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-06-20 23:18:09 +0000 |
commit | 1d0f7c3a0cc26c37d159c0e0532cd10d8cafc83b (patch) | |
tree | d03ba27da40316152592658ff0feb696404e7338 | |
parent | 5b885240b7b39972450dac85f3d0fb52255246e3 (diff) |
ICQ: fix the type of elements of an array of pointers to hf_ values.
"int * const a[]" means "array of const pointers to (non-const) int". so
the array elements are all const; "const int *a[]" means "array of
(non-const) pointrs to const int".
Change-Id: I2089ca390308da50d182f6bdad5be530f7e7cc71
Reviewed-on: https://code.wireshark.org/review/37527
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
-rw-r--r-- | epan/dissectors/packet-icq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c index df35635bdb..1360aba5dc 100644 --- a/epan/dissectors/packet-icq.c +++ b/epan/dissectors/packet-icq.c @@ -483,12 +483,12 @@ icqv5_decode_msgType(proto_tree *tree, tvbuff_t *tvb, int offset, int size, gint sep_offset; int sz; /* Size of the current element */ unsigned int n; - static const int *url_field_descr[] = { + static int * const url_field_descr[] = { &hf_icq_description, &hf_icq_url, }; #define N_URL_FIELDS (sizeof url_field_descr / sizeof url_field_descr[0]) - static const int *email_field_descr[] = { + static int * const email_field_descr[] = { &hf_icq_nickname, &hf_icq_first_name, &hf_icq_last_name, @@ -497,7 +497,7 @@ icqv5_decode_msgType(proto_tree *tree, tvbuff_t *tvb, int offset, int size, &hf_icq_text, }; #define N_EMAIL_FIELDS (sizeof email_field_descr / sizeof email_field_descr[0]) - static const int *auth_req_field_descr[] = { + static int * const auth_req_field_descr[] = { &hf_icq_nickname, &hf_icq_first_name, &hf_icq_last_name, @@ -506,7 +506,7 @@ icqv5_decode_msgType(proto_tree *tree, tvbuff_t *tvb, int offset, int size, &hf_icq_reason, }; #define N_AUTH_REQ_FIELDS (sizeof auth_req_field_descr / sizeof auth_req_field_descr[0]) - static const int *user_added_field_descr[] = { + static int * const user_added_field_descr[] = { &hf_icq_nickname, &hf_icq_first_name, &hf_icq_last_name, |