aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-07-04 14:04:13 -0700
committerGuy Harris <gharris@sonic.net>2020-07-04 22:53:21 +0000
commit569a768ccd1f128980cfa3bc2b9c658f3be11a9b (patch)
treef2c0e5644d7ded7bffff596ea52b18b6eb75722b
parent26b44bd8230010c0242c0ede8e556ed27145220a (diff)
ajp13: 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: I8f1a0fd7b0f3d06ebf4cf6b993c74cfd47a0db26 Reviewed-on: https://code.wireshark.org/review/37702 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-ajp13.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ajp13.c b/epan/dissectors/packet-ajp13.c
index ef42ef7092..64fb4bedb6 100644
--- a/epan/dissectors/packet-ajp13.c
+++ b/epan/dissectors/packet-ajp13.c
@@ -229,7 +229,7 @@ static expert_field ei_ajp13_content_length_invalid = EI_INIT;
* an effort to improve performance. Why can't we just have one big
* list?
*/
-static const int* rsp_headers[] = {
+static int * const rsp_headers[] = {
&hf_ajp13_unknown_header,
&hf_ajp13_content_type,
&hf_ajp13_content_language,
@@ -244,7 +244,7 @@ static const int* rsp_headers[] = {
&hf_ajp13_www_authenticate
};
-static const int* req_headers[] = {
+static int * const req_headers[] = {
&hf_ajp13_unknown_header,
&hf_ajp13_accept,
&hf_ajp13_accept_charset,
@@ -262,7 +262,7 @@ static const int* req_headers[] = {
&hf_ajp13_user_agent
};
-static const int* req_attributes[] = {
+static int * const req_attributes[] = {
&hf_ajp13_unknown_attribute,
&hf_ajp13_context,
&hf_ajp13_servlet_path,