software/libliteeth: Fix udp_set_callback warning.
This commit is contained in:
parent
434e2225ea
commit
72590dfde3
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue