From 132dafa3fc014c5e044286a8c6efe5eed2b7b033 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sat, 5 Nov 2016 15:15:08 +0100 Subject: [PATCH] Correct macro parentheses in tcpip_priv.h --- src/include/lwip/priv/tcpip_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/lwip/priv/tcpip_priv.h b/src/include/lwip/priv/tcpip_priv.h index 5fc80f3f..630efb14 100644 --- a/src/include/lwip/priv/tcpip_priv.h +++ b/src/include/lwip/priv/tcpip_priv.h @@ -69,7 +69,7 @@ struct netif; } while(0) #define API_VAR_FREE(pool, name) memp_free(pool, name) #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) -#define API_EXPR_REF(expr) &(expr) +#define API_EXPR_REF(expr) (&(expr)) #if LWIP_NETCONN_SEM_PER_THREAD #define API_EXPR_REF_SEM(expr) (expr) #else @@ -87,7 +87,7 @@ struct netif; #define API_VAR_FREE_POOL(pool, name) #define API_EXPR_REF(expr) expr #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr) -#define API_EXPR_DEREF(expr) *(expr) +#define API_EXPR_DEREF(expr) (*(expr)) #define API_MSG_M_DEF(m) *m #define API_MSG_M_DEF_C(t, m) const t * m #endif /* LWIP_MPU_COMPATIBLE */