diff options
Diffstat (limited to 'toxcore/group.c')
-rw-r--r-- | toxcore/group.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/group.c b/toxcore/group.c index eb795721..c1a60851 100644 --- a/toxcore/group.c +++ b/toxcore/group.c | |||
@@ -447,7 +447,7 @@ static int remove_close_conn(Group_Chats *g_c, int groupnumber, int friendcon_id | |||
447 | if (g->close[i].type == GROUPCHAT_CLOSE_NONE) | 447 | if (g->close[i].type == GROUPCHAT_CLOSE_NONE) |
448 | continue; | 448 | continue; |
449 | 449 | ||
450 | if (g->close[i].number == friendcon_id) { | 450 | if (g->close[i].number == (unsigned int)friendcon_id) { |
451 | g->close[i].type = GROUPCHAT_CLOSE_NONE; | 451 | g->close[i].type = GROUPCHAT_CLOSE_NONE; |
452 | kill_friend_connection(g_c->fr_c, friendcon_id); | 452 | kill_friend_connection(g_c->fr_c, friendcon_id); |
453 | return 0; | 453 | return 0; |
@@ -576,7 +576,7 @@ static void set_conns_type_close(Group_Chats *g_c, int groupnumber, int friendco | |||
576 | if (g->close[i].type == GROUPCHAT_CLOSE_NONE) | 576 | if (g->close[i].type == GROUPCHAT_CLOSE_NONE) |
577 | continue; | 577 | continue; |
578 | 578 | ||
579 | if (g->close[i].number != friendcon_id) | 579 | if (g->close[i].number != (unsigned int)friendcon_id) |
580 | continue; | 580 | continue; |
581 | 581 | ||
582 | if (type == GROUPCHAT_CLOSE_ONLINE) { | 582 | if (type == GROUPCHAT_CLOSE_ONLINE) { |
@@ -789,7 +789,7 @@ int group_names(const Group_Chats *g_c, int groupnumber, uint8_t names[][MAX_NAM | |||
789 | if (!g) | 789 | if (!g) |
790 | return -1; | 790 | return -1; |
791 | 791 | ||
792 | int i; | 792 | unsigned int i; |
793 | 793 | ||
794 | for (i = 0; i < g->numpeers && i < length; ++i) { | 794 | for (i = 0; i < g->numpeers && i < length; ++i) { |
795 | lengths[i] = group_peername(g_c, groupnumber, i, names[i]); | 795 | lengths[i] = group_peername(g_c, groupnumber, i, names[i]); |