summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_variables.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-04-22 15:04:29 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-04-25 15:15:28 +0100
commitb26c119f4e535f617c9ffb10076f15c4ee54414d (patch)
treedace6467e1c395c039f596d2d8c7d3004f8b34b1 /src/nxt_http_variables.c
parent31cec908cd9d431eb8632b53b9bbd96caac56bfd (diff)
downloadunit-b26c119f4e535f617c9ffb10076f15c4ee54414d.tar.gz
unit-b26c119f4e535f617c9ffb10076f15c4ee54414d.tar.bz2
Tighten up some string arrays
This is the normal way of declaring such things. Reviewed-by: Zhidao HONG <z.hong@f5.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_http_variables.c')
-rw-r--r--src/nxt_http_variables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_http_variables.c b/src/nxt_http_variables.c
index 85ae6004..3a1746b3 100644
--- a/src/nxt_http_variables.c
+++ b/src/nxt_http_variables.c
@@ -366,8 +366,9 @@ nxt_http_log_date(u_char *buf, nxt_realtime_t *now, struct tm *tm,
u_char sign;
time_t gmtoff;
- static const char *month[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
- "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
+ static const char * const month[] = { "Jan", "Feb", "Mar", "Apr", "May",
+ "Jun", "Jul", "Aug", "Sep", "Oct",
+ "Nov", "Dec" };
gmtoff = nxt_timezone(tm) / 60;