Fork of NetServicesMin with some warnings removed
Fork of NetServicesMin by
Diff: if/lwip/lwipNetUdpSocket.cpp
- Revision:
- 2:9cc2c6e42ffd
- Parent:
- 0:8b387bed54c2
--- a/if/lwip/lwipNetUdpSocket.cpp Wed Jul 18 20:28:43 2012 +0000 +++ b/if/lwip/lwipNetUdpSocket.cpp Tue Oct 30 05:20:56 2012 +0000 @@ -97,7 +97,8 @@ q = q->next; } while(q != NULL); - err_t err = udp_sendto( (udp_pcb*) m_pPcb, p, &(pHost->getIp().getStruct()), pHost->getPort() ); + ip_addr_t hip(pHost->getIp().getStruct()); + err_t err = udp_sendto( (udp_pcb*) m_pPcb, p, &hip, pHost->getPort() ); pbuf_free( p ); if(err) return NETUDPSOCKET_SETUP; //Connection problem