commit cc013a5

green  ·  2026-01-24 01:14:18 +0000 UTC
parent ce8e11a
poll-limit: fix warning
1 files changed,  +3, -2
+3, -2
 1@@ -17,6 +17,7 @@
 2 
 3 #include "snac.h"
 4 
 5+#include <stddef.h>
 6 #include <sys/wait.h>
 7 
 8 const char * const public_address = "https:/" "/www.w3.org/ns/activitystreams#Public";
 9@@ -2321,8 +2322,8 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach,
10 /* creates a Question message */
11 {
12     xs_dict *msg = msg_note(user, content, NULL, NULL, attach, 0, NULL, NULL);
13-    int max_line = 200;
14-    int max      = 8;
15+    size_t max_line = 200;
16+    int max = 8;
17     const xs_number *max_options = xs_dict_get(srv_config, "max_poll_options");
18     xs_set seen;
19