Skip to content

Commit

Permalink
fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 14, 2024
1 parent e7abc33 commit 24514e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions toxcore/group_chats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@ void gc_get_group_peer_connection_ip(const Messenger *m, int group_number, uint3
if (ip_str == nullptr) {
return;
}
char *p = ip_str;
char *p = (char *)ip_str;

const GC_Session *c = m->group_handler;
const GC_Chat *chat = gc_get_group(c, group_number);
Expand Down Expand Up @@ -3422,7 +3422,6 @@ void gc_get_group_peer_connection_ip(const Messenger *m, int group_number, uint3
for (uint32_t i = 0; i < MAX_FRIEND_TCP_CONNECTIONS; ++i) {
uint32_t tcp_con_num = con_to->connections[i].tcp_connection;
const uint8_t status = con_to->connections[i].status;
const uint8_t connection_id = con_to->connections[i].connection_id;

if (tcp_con_num > 0 && status == TCP_CONNECTIONS_STATUS_ONLINE) {
tcp_con_num -= 1;
Expand Down

0 comments on commit 24514e6

Please sign in to comment.