software/libliteeth: Fix udp_set_callback warning.

This commit is contained in:
Florent Kermarrec 2023-08-30 17:44:00 +02:00
parent 434e2225ea
commit 72590dfde3
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ int tftp_get(uint32_t ip, uint16_t server_port, const char *filename,
if(!udp_arp_resolve(ip)) if(!udp_arp_resolve(ip))
return -1; return -1;
udp_set_callback(rx_callback); udp_set_callback((udp_callback) rx_callback);
dst_buffer = buffer; dst_buffer = buffer;
@ -201,7 +201,7 @@ int tftp_put(uint32_t ip, uint16_t server_port, const char *filename,
if(!udp_arp_resolve(ip)) if(!udp_arp_resolve(ip))
return -1; return -1;
udp_set_callback(rx_callback); udp_set_callback((udp_callback) rx_callback);
packet_data = udp_get_tx_buffer(); packet_data = udp_get_tx_buffer();