diff --git a/activitypub.c b/activitypub.c index c7de818..d4944ec 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1138,10 +1138,10 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, /* create the attachment list, if there are any */ if (!xs_is_null(attach)) { while (xs_list_iter(&attach, &v)) { - xs *d = xs_dict_new(); - char *url = xs_list_get(v, 0); - char *alt = xs_list_get(v, 1); - char *mime = xs_mime_by_ext(url); + xs *d = xs_dict_new(); + const char *url = xs_list_get(v, 0); + const char *alt = xs_list_get(v, 1); + const char *mime = xs_mime_by_ext(url); d = xs_dict_append(d, "mediaType", mime); d = xs_dict_append(d, "url", url); diff --git a/html.c b/html.c index f7fa520..51c5da2 100644 --- a/html.c +++ b/html.c @@ -1967,7 +1967,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, if (valid_status(status)) { *b_size = sz; - *ctype = xs_mime_by_ext(id); + *ctype = (char *)xs_mime_by_ext(id); } } }