commit 8c87b68
default
·
2023-08-14 16:04:27 +0000 UTC
parent 3f7e3c1
Fixed some warning.
2 files changed,
+5,
-5
M
html.c
+4,
-4
1@@ -1138,10 +1138,10 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
2 /* create the attachment list, if there are any */
3 if (!xs_is_null(attach)) {
4 while (xs_list_iter(&attach, &v)) {
5- xs *d = xs_dict_new();
6- char *url = xs_list_get(v, 0);
7- char *alt = xs_list_get(v, 1);
8- char *mime = xs_mime_by_ext(url);
9+ xs *d = xs_dict_new();
10+ const char *url = xs_list_get(v, 0);
11+ const char *alt = xs_list_get(v, 1);
12+ const char *mime = xs_mime_by_ext(url);
13
14 d = xs_dict_append(d, "mediaType", mime);
15 d = xs_dict_append(d, "url", url);
M
html.c
+1,
-1
1@@ -1967,7 +1967,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2
3 if (valid_status(status)) {
4 *b_size = sz;
5- *ctype = xs_mime_by_ext(id);
6+ *ctype = (char *)xs_mime_by_ext(id);
7 }
8 }
9 }