summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-06-26 18:15:55 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-07-12 16:44:54 +0100
commit081e51151efc7976f578692ee9fc23df14b35a6e (patch)
tree7034b4b1e69eab76124499a4a3512f2b6b80c7cb /src
parent6ca27c326622432c12050c3162dedc5e458adbd5 (diff)
downloadunit-081e51151efc7976f578692ee9fc23df14b35a6e.tar.gz
unit-081e51151efc7976f578692ee9fc23df14b35a6e.tar.bz2
status: Constify a bunch of local variables
This is yet more missed constification, due in this case to me searching for 'static nxt_str_t ' but these only having a single space after the type... Anyway no problem, this can be a preparatory patch for adding further /status information... Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_status.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nxt_status.c b/src/nxt_status.c
index f8002e86..0635f0b2 100644
--- a/src/nxt_status.c
+++ b/src/nxt_status.c
@@ -17,17 +17,17 @@ nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp)
nxt_status_app_t *app;
nxt_conf_value_t *status, *obj, *apps, *app_obj;
- static nxt_str_t conns_str = nxt_string("connections");
- static nxt_str_t acc_str = nxt_string("accepted");
- static nxt_str_t active_str = nxt_string("active");
- static nxt_str_t idle_str = nxt_string("idle");
- static nxt_str_t closed_str = nxt_string("closed");
- static nxt_str_t reqs_str = nxt_string("requests");
- static nxt_str_t total_str = nxt_string("total");
- static nxt_str_t apps_str = nxt_string("applications");
- static nxt_str_t procs_str = nxt_string("processes");
- static nxt_str_t run_str = nxt_string("running");
- static nxt_str_t start_str = nxt_string("starting");
+ static const nxt_str_t conns_str = nxt_string("connections");
+ static const nxt_str_t acc_str = nxt_string("accepted");
+ static const nxt_str_t active_str = nxt_string("active");
+ static const nxt_str_t idle_str = nxt_string("idle");
+ static const nxt_str_t closed_str = nxt_string("closed");
+ static const nxt_str_t reqs_str = nxt_string("requests");
+ static const nxt_str_t total_str = nxt_string("total");
+ static const nxt_str_t apps_str = nxt_string("applications");
+ static const nxt_str_t procs_str = nxt_string("processes");
+ static const nxt_str_t run_str = nxt_string("running");
+ static const nxt_str_t start_str = nxt_string("starting");
status = nxt_conf_create_object(mp, 3);
if (nxt_slow_path(status == NULL)) {