aboutsummaryrefslogtreecommitdiff
path: root/format.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 /format.c
parent8e58a6b8a76c31914ba57f8ad8be018ba872a250 (diff)
making sure that global data is immutable
Diffstat (limited to 'format.c')
-rw-r--r--format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.c b/format.c
index e3f20c2..84c634d 100644
--- a/format.c
+++ b/format.c
@@ -13,7 +13,7 @@
#include "snac.h"
/* emoticons, people laughing and such */
-const char *smileys[] = {
+const char * const smileys[] = {
":-)", "&#128578;",
":-D", "&#128512;",
"X-D", "&#128518;",
@@ -49,7 +49,7 @@ xs_dict *emojis(void)
if (mtime(fn) == 0) {
/* file does not exist; create it with the defaults */
xs *d = xs_dict_new();
- const char **emo = smileys;
+ const char * const *emo = smileys;
while (*emo) {
d = xs_dict_append(d, emo[0], emo[1]);
@@ -443,7 +443,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
}
-const char *valid_tags[] = {
+const char * const valid_tags[] = {
"a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
"span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi",
"h2","h3", //anzu