diff options
author | Simon Goldschmidt <[email protected]> | 2019-02-27 10:29:55 +0100 |
---|---|---|
committer | Simon Goldschmidt <[email protected]> | 2019-02-27 10:29:55 +0100 |
commit | 3b5eb7ca90f130c6e31f42cb4c6883ef80a5faef (patch) | |
tree | 21723eddca4017a64e7d7fac0771367732eb52a6 | |
parent | 752cdb1a53863ce241b1eb9e712bd223b6556360 (diff) | |
download | lwip-3b5eb7ca90f130c6e31f42cb4c6883ef80a5faef.tar.gz |
udp_bind: fix missing parenthesis warning
Signed-off-by: Simon Goldschmidt <[email protected]>
-rw-r--r-- | src/core/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/udp.c b/src/core/udp.c index 747fd7d5..9013cccb 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -997,13 +997,13 @@ udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) { /* port matches that of PCB in list and REUSEADDR not set -> reject */ if ((ipcb->local_port == port) && - ((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) && + (((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) && /* IP address matches or any IP used? */ (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || ip_addr_isany(&ipcb->local_ip))) || (IP_GET_TYPE(&ipcb->local_ip) == IPADDR_TYPE_ANY) || - (IP_GET_TYPE(ipaddr) == IPADDR_TYPE_ANY)) { + (IP_GET_TYPE(ipaddr) == IPADDR_TYPE_ANY))) { /* other PCB already binds to this local IP and port */ LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: local port %"U16_F" already bound by another pcb\n", port)); |