diff options
| author | 2023-08-14 18:04:27 +0200 | |
|---|---|---|
| committer | 2023-08-14 18:04:27 +0200 | |
| commit | 8c87b6894eafc22e5188f382b7bc726ed06e6919 (patch) | |
| tree | 76b9eb8f106b9b48c1cfcd0b30009ed3b843fede | |
| parent | Unify the instance description text. (diff) | |
| download | snac2-8c87b6894eafc22e5188f382b7bc726ed06e6919.tar.gz snac2-8c87b6894eafc22e5188f382b7bc726ed06e6919.tar.xz snac2-8c87b6894eafc22e5188f382b7bc726ed06e6919.zip | |
Fixed some warning.
| -rw-r--r-- | activitypub.c | 8 | ||||
| -rw-r--r-- | html.c | 2 |
2 files changed, 5 insertions, 5 deletions
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, | |||
| 1138 | /* create the attachment list, if there are any */ | 1138 | /* create the attachment list, if there are any */ |
| 1139 | if (!xs_is_null(attach)) { | 1139 | if (!xs_is_null(attach)) { |
| 1140 | while (xs_list_iter(&attach, &v)) { | 1140 | while (xs_list_iter(&attach, &v)) { |
| 1141 | xs *d = xs_dict_new(); | 1141 | xs *d = xs_dict_new(); |
| 1142 | char *url = xs_list_get(v, 0); | 1142 | const char *url = xs_list_get(v, 0); |
| 1143 | char *alt = xs_list_get(v, 1); | 1143 | const char *alt = xs_list_get(v, 1); |
| 1144 | char *mime = xs_mime_by_ext(url); | 1144 | const char *mime = xs_mime_by_ext(url); |
| 1145 | 1145 | ||
| 1146 | d = xs_dict_append(d, "mediaType", mime); | 1146 | d = xs_dict_append(d, "mediaType", mime); |
| 1147 | d = xs_dict_append(d, "url", url); | 1147 | d = xs_dict_append(d, "url", url); |
| @@ -1967,7 +1967,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 1967 | 1967 | ||
| 1968 | if (valid_status(status)) { | 1968 | if (valid_status(status)) { |
| 1969 | *b_size = sz; | 1969 | *b_size = sz; |
| 1970 | *ctype = xs_mime_by_ext(id); | 1970 | *ctype = (char *)xs_mime_by_ext(id); |
| 1971 | } | 1971 | } |
| 1972 | } | 1972 | } |
| 1973 | } | 1973 | } |