fixed compiler warning

This commit is contained in:
nifi 2010-02-23 23:06:04 +00:00
parent be76ae53f9
commit 7ca6cb2ce2
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ udphandler(process_event_t ev, process_data_t data)
if (ev == tcpip_event) { if (ev == tcpip_event) {
if(uip_newdata()) { if(uip_newdata()) {
((char *)uip_appdata)[uip_datalen()] = 0; ((char *)uip_appdata)[uip_datalen()] = 0;
printf("Receiver received: '%s'\n", uip_appdata); printf("Receiver received: '%s'\n", (char *)uip_appdata);
} }
} }

View file

@ -68,7 +68,7 @@ udphandler(process_event_t ev, process_data_t data)
if(ev == tcpip_event) { if(ev == tcpip_event) {
if(uip_newdata()) { if(uip_newdata()) {
((char *)uip_appdata)[uip_datalen()] = 0; ((char *)uip_appdata)[uip_datalen()] = 0;
printf("Sender received: '%s'\n", uip_appdata); printf("Sender received: '%s'\n", (char *)uip_appdata);
} }
} }