mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warning.
This commit is contained in:
parent
5770a0e29a
commit
e2b235e296
|
@ -733,7 +733,7 @@ void m_set_sends_receipts(Messenger *m, int32_t friendnumber, int yesno)
|
||||||
void m_callback_friendrequest(Messenger *m, void (*function)(Messenger *m, uint8_t *, uint8_t *, uint16_t, void *),
|
void m_callback_friendrequest(Messenger *m, void (*function)(Messenger *m, uint8_t *, uint8_t *, uint16_t, void *),
|
||||||
void *userdata)
|
void *userdata)
|
||||||
{
|
{
|
||||||
void (*handle_friendrequest)(void *, uint8_t *, uint8_t *, uint16_t, void *) = function;
|
void (*handle_friendrequest)(void *, uint8_t *, uint8_t *, uint16_t, void *) = (void *)function;
|
||||||
callback_friendrequest(&(m->fr), handle_friendrequest, m, userdata);
|
callback_friendrequest(&(m->fr), handle_friendrequest, m, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user