mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed incompatible pointer type warning
This commit is contained in:
parent
93b1c346fe
commit
14d942c1e1
|
@ -34,7 +34,7 @@ static uint16_t bootstrap_motd_length;
|
||||||
/* To request this packet just send a packet of length INFO_REQUEST_PACKET_LENGTH
|
/* To request this packet just send a packet of length INFO_REQUEST_PACKET_LENGTH
|
||||||
* with the first byte being BOOTSTRAP_INFO_PACKET_ID
|
* with the first byte being BOOTSTRAP_INFO_PACKET_ID
|
||||||
*/
|
*/
|
||||||
static int handle_info_request(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
|
static int handle_info_request(void *object, IP_Port source, const uint8_t *packet, uint16_t length)
|
||||||
{
|
{
|
||||||
if (length != INFO_REQUEST_PACKET_LENGTH)
|
if (length != INFO_REQUEST_PACKET_LENGTH)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user