diff options
author | default <nobody@localhost> | 2023-08-14 18:04:27 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-14 18:04:27 +0200 |
commit | 8c87b6894eafc22e5188f382b7bc726ed06e6919 (patch) | |
tree | 76b9eb8f106b9b48c1cfcd0b30009ed3b843fede /activitypub.c | |
parent | 3f7e3c1d81fef35eada041b7d901974129238dce (diff) |
Fixed some warning.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 8 |
1 files changed, 4 insertions, 4 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, /* 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); |