From: Sebastien Bourdeauducq Date: Tue, 11 Jun 2013 12:03:39 +0000 (+0200) Subject: microudp: fix compilation warning X-Git-Tag: 24jan2021_ls180~2907 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f2c05d436ade263fe67f68f4026f48eb9849a6e;p=litex.git microudp: fix compilation warning --- diff --git a/software/include/net/microudp.h b/software/include/net/microudp.h index 79a1b0e5..f9b33980 100644 --- a/software/include/net/microudp.h +++ b/software/include/net/microudp.h @@ -7,7 +7,7 @@ typedef void (*udp_callback)(unsigned int src_ip, unsigned short src_port, unsigned short dst_port, void *data, unsigned int length); -void microudp_start(unsigned char *macaddr, unsigned int ip); +void microudp_start(const unsigned char *macaddr, unsigned int ip); int microudp_arp_resolve(unsigned int ip); void *microudp_get_tx_buffer(void); int microudp_send(unsigned short src_port, unsigned short dst_port, unsigned int length); diff --git a/software/libnet/microudp.c b/software/libnet/microudp.c index 8c6d6254..31bb5aae 100644 --- a/software/libnet/microudp.c +++ b/software/libnet/microudp.c @@ -350,7 +350,7 @@ static void process_frame(void) else if(rxbuffer->frame.eth_header.ethertype == ETHERTYPE_IP) process_ip(); } -void microudp_start(unsigned char *macaddr, unsigned int ip) +void microudp_start(const unsigned char *macaddr, unsigned int ip) { int i;