mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Fixed some warning.
This commit is contained in:
parent
3f7e3c1d81
commit
8c87b6894e
2 changed files with 5 additions and 5 deletions
|
@ -1139,9 +1139,9 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
|
||||||
if (!xs_is_null(attach)) {
|
if (!xs_is_null(attach)) {
|
||||||
while (xs_list_iter(&attach, &v)) {
|
while (xs_list_iter(&attach, &v)) {
|
||||||
xs *d = xs_dict_new();
|
xs *d = xs_dict_new();
|
||||||
char *url = xs_list_get(v, 0);
|
const char *url = xs_list_get(v, 0);
|
||||||
char *alt = xs_list_get(v, 1);
|
const char *alt = xs_list_get(v, 1);
|
||||||
char *mime = xs_mime_by_ext(url);
|
const char *mime = xs_mime_by_ext(url);
|
||||||
|
|
||||||
d = xs_dict_append(d, "mediaType", mime);
|
d = xs_dict_append(d, "mediaType", mime);
|
||||||
d = xs_dict_append(d, "url", url);
|
d = xs_dict_append(d, "url", url);
|
||||||
|
|
2
html.c
2
html.c
|
@ -1967,7 +1967,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
|
||||||
|
|
||||||
if (valid_status(status)) {
|
if (valid_status(status)) {
|
||||||
*b_size = sz;
|
*b_size = sz;
|
||||||
*ctype = xs_mime_by_ext(id);
|
*ctype = (char *)xs_mime_by_ext(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue