From 6f2c05d436ade263fe67f68f4026f48eb9849a6e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 11 Jun 2013 14:03:39 +0200 Subject: [PATCH] microudp: fix compilation warning --- software/include/net/microudp.h | 2 +- software/libnet/microudp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2