mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/libliteeth: Fix udp_set_callback warning.
This commit is contained in:
parent
434e2225ea
commit
72590dfde3
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ int tftp_get(uint32_t ip, uint16_t server_port, const char *filename,
|
|||
if(!udp_arp_resolve(ip))
|
||||
return -1;
|
||||
|
||||
udp_set_callback(rx_callback);
|
||||
udp_set_callback((udp_callback) rx_callback);
|
||||
|
||||
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))
|
||||
return -1;
|
||||
|
||||
udp_set_callback(rx_callback);
|
||||
udp_set_callback((udp_callback) rx_callback);
|
||||
|
||||
packet_data = udp_get_tx_buffer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue