1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

pios_com_udp: explicit type cast to prevent compiler warning

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1020 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
corvus 2010-07-04 11:24:43 +00:00 committed by corvus
parent 6492299ef1
commit 2e373c5dfc

View File

@ -163,7 +163,7 @@ void PIOS_UDP_RECV(uint8_t udp) {
(PIOS_UDP_RX_BUFFER_SIZE - udp_dev->rx.size),
0,
(struct sockaddr *) &udp_dev->client,
&udp_dev->clientLength)) < 0) {
(socklen_t*)&udp_dev->clientLength)) < 0) {
return;
}
@ -379,7 +379,7 @@ int32_t PIOS_UDP_TxBufferPutMoreNonBlocking(uint8_t udp, uint8_t *buffer, uint16
fcntl(udp_dev->socket, F_SETFL, flags | O_NONBLOCK);
sendto(udp_dev->socket, buffer, len, 0,
(struct sockaddr *) &udp_dev->client,
sizeof(udp_dev->client));
(socklen_t)sizeof(udp_dev->client));
/* No error */