From 3d5fd9c2d0114e7d4bbb389e11216c425adaa216 Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 12 Jul 2018 23:58:24 +0000 Subject: Limit number of group chats to 65536. By changing numchats from uint32_t to uint16_t. This is done in PGC. This PR is making that change in master to reduce the diff in the PGC branch. Also: * Inverted groupnumber_not_valid and renamed to is_groupnumber_valid. * Renamed realloc_groupchats to realloc_conferences and made it return bool. * Added setup_conference function that currently just zeroes the conference structure but later will initialise more values. * Made some `i` iterator variables local to the for-loop using for-init-decl. This is also done in PGC. --- toxcore/group.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/group.h') diff --git a/toxcore/group.h b/toxcore/group.h index 947c7035..b2a297f9 100644 --- a/toxcore/group.h +++ b/toxcore/group.h @@ -138,7 +138,7 @@ typedef struct Group_Chats { Friend_Connections *fr_c; Group_c *chats; - uint32_t num_chats; + uint16_t num_chats; g_conference_invite_cb *invite_callback; g_conference_message_cb *message_callback; -- cgit v1.2.3