diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 8bddd6bc..94cb93dd 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -826,7 +826,7 @@ void m_callback_statusmessage(Messenger *m, void (*function)(Messenger *m, uint3 | |||
826 | void *userdata) | 826 | void *userdata) |
827 | { | 827 | { |
828 | m->friend_statusmessagechange = function; | 828 | m->friend_statusmessagechange = function; |
829 | m->friend_statuschange_userdata = userdata; | 829 | m->friend_statusmessagechange_userdata = userdata; |
830 | } | 830 | } |
831 | 831 | ||
832 | void m_callback_userstatus(Messenger *m, void (*function)(Messenger *m, uint32_t, uint8_t, void *), void *userdata) | 832 | void m_callback_userstatus(Messenger *m, void (*function)(Messenger *m, uint32_t, uint8_t, void *), void *userdata) |
@@ -1654,7 +1654,7 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len) | |||
1654 | 1654 | ||
1655 | if (m->friend_statusmessagechange) | 1655 | if (m->friend_statusmessagechange) |
1656 | m->friend_statusmessagechange(m, i, data_terminated, data_length, | 1656 | m->friend_statusmessagechange(m, i, data_terminated, data_length, |
1657 | m->friend_statuschange_userdata); | 1657 | m->friend_statusmessagechange_userdata); |
1658 | 1658 | ||
1659 | set_friend_statusmessage(m, i, data_terminated, data_length); | 1659 | set_friend_statusmessage(m, i, data_terminated, data_length); |
1660 | break; | 1660 | break; |