aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorbyte <gf3qyrmw7@mozmail.com>2025-09-22 23:27:47 +0000
committerbyte <gf3qyrmw7@mozmail.com>2025-09-22 23:27:47 +0000
commitd23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad (patch)
tree2f53b7d285c27a81b150fb29b2bc6383a5145289 /utils.c
parent8e58a6b8a76c31914ba57f8ad8be018ba872a250 (diff)
making sure that global data is immutable
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index bdee09d..38dcc06 100644
--- a/utils.c
+++ b/utils.c
@@ -16,7 +16,7 @@
#include <sys/stat.h>
#include <stdlib.h>
-static const char *default_srv_config = "{"
+static const char * const default_srv_config = "{"
"\"host\": \"\","
"\"prefix\": \"\","
"\"address\": \"127.0.0.1\","
@@ -42,7 +42,7 @@ static const char *default_srv_config = "{"
"\"fastcgi\": false"
"}";
-static const char *default_css =
+static const char * const default_css =
"body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; }\n"
"pre { overflow-x: scroll; }\n"
"blockquote { font-style: italic; }\n"
@@ -97,7 +97,7 @@ const char *snac_blurb =
"automatic sign-up process.</p>\n"
;
-static const char *greeting_html =
+static const char * const greeting_html =
"<!DOCTYPE html>\n"
"<html><head>\n"
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n"