microudp: fix compilation warning
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 11 Jun 2013 12:03:39 +0000 (14:03 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 11 Jun 2013 12:03:39 +0000 (14:03 +0200)
software/include/net/microudp.h
software/libnet/microudp.c

index 79a1b0e58253112887ff5b7959b42d627a180765..f9b33980048c82389406c0e90359db9dc016fb81 100644 (file)
@@ -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);
index 8c6d62541e77e8c23d512f8a54bd2fd643781a6f..31bb5aaeb6e3ca19e7c8963c2a0d754cec5dd5a0 100644 (file)
@@ -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;