From 26d7f1107e314e716d9144f93cf084d621036fc5 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 27 Jul 2011 16:51:11 +0000 Subject: [PATCH] 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 --- Demo/Common/ethernet/lwip-1.4.0/src/api/sockets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5