summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorGravatar byte2025-09-22 23:27:47 +0000
committerGravatar byte2025-09-22 23:27:47 +0000
commitd23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad (patch)
tree2f53b7d285c27a81b150fb29b2bc6383a5145289 /utils.c
parentMerge pull request 'Update po/cs.po' (#476) from pmjv/snac2:master into master (diff)
downloadsnac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.tar.gz
snac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.tar.xz
snac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.zip
making sure that global data is immutable
Diffstat (limited to '')
-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 @@
16#include <sys/stat.h> 16#include <sys/stat.h>
17#include <stdlib.h> 17#include <stdlib.h>
18 18
19static const char *default_srv_config = "{" 19static const char * const default_srv_config = "{"
20 "\"host\": \"\"," 20 "\"host\": \"\","
21 "\"prefix\": \"\"," 21 "\"prefix\": \"\","
22 "\"address\": \"127.0.0.1\"," 22 "\"address\": \"127.0.0.1\","
@@ -42,7 +42,7 @@ static const char *default_srv_config = "{"
42 "\"fastcgi\": false" 42 "\"fastcgi\": false"
43 "}"; 43 "}";
44 44
45static const char *default_css = 45static const char * const default_css =
46 "body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; }\n" 46 "body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; }\n"
47 "pre { overflow-x: scroll; }\n" 47 "pre { overflow-x: scroll; }\n"
48 "blockquote { font-style: italic; }\n" 48 "blockquote { font-style: italic; }\n"
@@ -97,7 +97,7 @@ const char *snac_blurb =
97 "automatic sign-up process.</p>\n" 97 "automatic sign-up process.</p>\n"
98; 98;
99 99
100static const char *greeting_html = 100static const char * const greeting_html =
101 "<!DOCTYPE html>\n" 101 "<!DOCTYPE html>\n"
102 "<html><head>\n" 102 "<html><head>\n"
103 "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n" 103 "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n"