fixed compiler warning
This commit is contained in:
parent
be76ae53f9
commit
7ca6cb2ce2
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ udphandler(process_event_t ev, process_data_t data)
|
|||
if (ev == tcpip_event) {
|
||||
if(uip_newdata()) {
|
||||
((char *)uip_appdata)[uip_datalen()] = 0;
|
||||
printf("Receiver received: '%s'\n", uip_appdata);
|
||||
printf("Receiver received: '%s'\n", (char *)uip_appdata);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ udphandler(process_event_t ev, process_data_t data)
|
|||
if(ev == tcpip_event) {
|
||||
if(uip_newdata()) {
|
||||
((char *)uip_appdata)[uip_datalen()] = 0;
|
||||
printf("Sender received: '%s'\n", uip_appdata);
|
||||
printf("Sender received: '%s'\n", (char *)uip_appdata);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue