Skip to content

Commit

Permalink
software/libliteeth: Fix udp_set_callback warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Aug 30, 2023
1 parent 434e222 commit 72590df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litex/soc/software/libliteeth/tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 72590df

Please sign in to comment.