summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authorGregory Mullen (grayhatter) <greg@grayhatter.com>2016-08-19 11:01:58 -0700
committerGregory Mullen (grayhatter) <greg@grayhatter.com>2016-08-20 11:07:49 -0700
commit1f94c9626682fce15aa41dee62099903ee9bea7f (patch)
tree5671fa1aa441054e4c55ed9bb618f3d07f429bf9 /toxcore/tox.c
parentf9c83c1084dc34543a6c5c29e675958bdc1cb915 (diff)
Make the friend message callback stateless
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 6b36c115..2733a22f 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -902,10 +902,10 @@ void tox_callback_friend_request(Tox *tox, tox_friend_request_cb *function, void
902 m_callback_friendrequest(m, function, user_data); 902 m_callback_friendrequest(m, function, user_data);
903} 903}
904 904
905void tox_callback_friend_message(Tox *tox, tox_friend_message_cb *function, void *user_data) 905void tox_callback_friend_message(Tox *tox, tox_friend_message_cb *function)
906{ 906{
907 Messenger *m = tox; 907 Messenger *m = tox;
908 m_callback_friendmessage(m, function, user_data); 908 m_callback_friendmessage(m, function);
909} 909}
910 910
911bool tox_hash(uint8_t *hash, const uint8_t *data, size_t length) 911bool tox_hash(uint8_t *hash, const uint8_t *data, size_t length)