diff options
| author | 2025-09-22 23:27:47 +0000 | |
|---|---|---|
| committer | 2025-09-22 23:27:47 +0000 | |
| commit | d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad (patch) | |
| tree | 2f53b7d285c27a81b150fb29b2bc6383a5145289 /utils.c | |
| parent | Merge pull request 'Update po/cs.po' (#476) from pmjv/snac2:master into master (diff) | |
| download | snac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.tar.gz snac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.tar.xz snac2-d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad.zip | |
making sure that global data is immutable
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <sys/stat.h> | 16 | #include <sys/stat.h> |
| 17 | #include <stdlib.h> | 17 | #include <stdlib.h> |
| 18 | 18 | ||
| 19 | static const char *default_srv_config = "{" | 19 | static 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 | ||
| 45 | static const char *default_css = | 45 | static 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 | ||
| 100 | static const char *greeting_html = | 100 | static 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" |