summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index b07b6012..dc8db8b3 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -959,7 +959,7 @@ static int get_chat_num(Messenger *m, Group_Chat *chat)
959 return -1; 959 return -1;
960} 960}
961 961
962static void group_message_function(Group_Chat *chat, int peer_number, uint8_t *message, uint16_t length, void *userdata) 962static void group_message_function(Group_Chat *chat, int peer_number, const uint8_t *message, uint16_t length, void *userdata)
963{ 963{
964 Messenger *m = userdata; 964 Messenger *m = userdata;
965 int i = get_chat_num(m, chat); 965 int i = get_chat_num(m, chat);
@@ -975,7 +975,7 @@ static void group_message_function(Group_Chat *chat, int peer_number, uint8_t *m
975 (*m->group_message)(m, i, peer_number, message_terminated, length, m->group_message_userdata); 975 (*m->group_message)(m, i, peer_number, message_terminated, length, m->group_message_userdata);
976} 976}
977 977
978static void group_action_function(Group_Chat *chat, int peer_number, uint8_t *action, uint16_t length, void *userdata) 978static void group_action_function(Group_Chat *chat, int peer_number, const uint8_t *action, uint16_t length, void *userdata)
979{ 979{
980 Messenger *m = userdata; 980 Messenger *m = userdata;
981 int i = get_chat_num(m, chat); 981 int i = get_chat_num(m, chat);
@@ -1261,7 +1261,7 @@ int group_names(Messenger *m, int groupnumber, uint8_t names[][MAX_NICK_BYTES],
1261 return group_client_names(m->chats[groupnumber], names, lengths, length); 1261 return group_client_names(m->chats[groupnumber], names, lengths, length);
1262} 1262}
1263 1263
1264static int handle_group(void *object, IP_Port source, uint8_t *packet, uint32_t length) 1264static int handle_group(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
1265{ 1265{
1266 Messenger *m = object; 1266 Messenger *m = object;
1267 1267