From: richardbarry Date: Wed, 27 Jul 2011 16:51:11 +0000 (+0000) Subject: Fix compiler warning in sockets.c of lwip-1.4.0. X-Git-Tag: V7.0.2~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26d7f1107e314e716d9144f93cf084d621036fc5;p=freertos Fix compiler warning in sockets.c of lwip-1.4.0. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1517 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/Common/ethernet/lwip-1.4.0/src/api/sockets.c b/Demo/Common/ethernet/lwip-1.4.0/src/api/sockets.c index e36012ce4..0f39bd251 100644 --- a/Demo/Common/ethernet/lwip-1.4.0/src/api/sockets.c +++ b/Demo/Common/ethernet/lwip-1.4.0/src/api/sockets.c @@ -2218,7 +2218,7 @@ lwip_setsockopt_internal(void *arg) case IPPROTO_UDPLITE: switch (optname) { case UDPLITE_SEND_CSCOV: - if ((*(int*)optval != 0) && ((*(int*)optval < 8)) || (*(int*)optval > 0xffff)) { + if (((*(int*)optval != 0) && ((*(int*)optval < 8)) ) || (*(int*)optval > 0xffff)) { /* don't allow illegal values! */ sock->conn->pcb.udp->chksum_len_tx = 8; } else { @@ -2228,7 +2228,7 @@ lwip_setsockopt_internal(void *arg) s, (*(int*)optval)) ); break; case UDPLITE_RECV_CSCOV: - if ((*(int*)optval != 0) && ((*(int*)optval < 8)) || (*(int*)optval > 0xffff)) { + if (((*(int*)optval != 0) && ((*(int*)optval < 8))) || (*(int*)optval > 0xffff)) { /* don't allow illegal values! */ sock->conn->pcb.udp->chksum_len_rx = 8; } else {