diff options
| author | green <dandelions@disroot.org> | 2026-01-24 02:14:18 +0100 |
|---|---|---|
| committer | green <dandelions@disroot.org> | 2026-01-24 02:23:16 +0100 |
| commit | cc013a5af8a661a954a15bf46a2feb17d8574855 (patch) | |
| tree | 626c835e98af75b321e892b6ec50e79b1ac66796 /activitypub.c | |
| parent | ce8e11adc74015931d9adac6f3b108e7ec31fbf5 (diff) | |
poll-limit: fix warning
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 8964030..e9e28be 100644 --- a/activitypub.c +++ b/activitypub.c @@ -17,6 +17,7 @@ #include "snac.h" +#include <stddef.h> #include <sys/wait.h> const char * const public_address = "https:/" "/www.w3.org/ns/activitystreams#Public"; @@ -2321,8 +2322,8 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach, /* creates a Question message */ { xs_dict *msg = msg_note(user, content, NULL, NULL, attach, 0, NULL, NULL); - int max_line = 200; - int max = 8; + size_t max_line = 200; + int max = 8; const xs_number *max_options = xs_dict_get(srv_config, "max_poll_options"); xs_set seen; |