diff options
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -13,7 +13,7 @@ | |||
| 13 | #include "snac.h" | 13 | #include "snac.h" |
| 14 | 14 | ||
| 15 | /* emoticons, people laughing and such */ | 15 | /* emoticons, people laughing and such */ |
| 16 | const char *smileys[] = { | 16 | const char * const smileys[] = { |
| 17 | ":-)", "🙂", | 17 | ":-)", "🙂", |
| 18 | ":-D", "😀", | 18 | ":-D", "😀", |
| 19 | "X-D", "😆", | 19 | "X-D", "😆", |
| @@ -49,7 +49,7 @@ xs_dict *emojis(void) | |||
| 49 | if (mtime(fn) == 0) { | 49 | if (mtime(fn) == 0) { |
| 50 | /* file does not exist; create it with the defaults */ | 50 | /* file does not exist; create it with the defaults */ |
| 51 | xs *d = xs_dict_new(); | 51 | xs *d = xs_dict_new(); |
| 52 | const char **emo = smileys; | 52 | const char * const *emo = smileys; |
| 53 | 53 | ||
| 54 | while (*emo) { | 54 | while (*emo) { |
| 55 | d = xs_dict_append(d, emo[0], emo[1]); | 55 | 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 | |||
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | 445 | ||
| 446 | const char *valid_tags[] = { | 446 | const char * const valid_tags[] = { |
| 447 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", | 447 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", |
| 448 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", | 448 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", |
| 449 | "h2","h3", //anzu | 449 | "h2","h3", //anzu |