From d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad Mon Sep 17 00:00:00 2001 From: byte Date: Mon, 22 Sep 2025 23:27:47 +0000 Subject: making sure that global data is immutable --- format.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'format.c') 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[] = { ":-)", "🙂", ":-D", "😀", "X-D", "😆", @@ -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 -- cgit v1.2.3