From 9e8733e57a070eb78b4711702aa221ce0cbf3cc7 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 18 Dec 2013 08:35:06 +0100 Subject: [PATCH 1/2] Correct the operator in the comment so that it matches the actual #if --- core/net/uipopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/uipopt.h b/core/net/uipopt.h index 7708d205c..45155ef5e 100644 --- a/core/net/uipopt.h +++ b/core/net/uipopt.h @@ -479,7 +479,7 @@ void uip_log(char *msg); #ifdef UIP_CONF_TCP_MSS #if UIP_CONF_TCP_MSS > (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) #error UIP_CONF_TCP_MSS is too large for the current UIP_BUFSIZE -#endif /* UIP_CONF_TCP_MSS < (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) */ +#endif /* UIP_CONF_TCP_MSS > (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) */ #define UIP_TCP_MSS (UIP_CONF_TCP_MSS) #else #define UIP_TCP_MSS (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) From c8c7c4ae3a0083ea0070c3918363e6362c1c6404 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 18 Dec 2013 08:35:35 +0100 Subject: [PATCH 2/2] Add comments to the #else and #endifs to make it clearer to what #ifdef they belong. --- core/net/uipopt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/uipopt.h b/core/net/uipopt.h index 45155ef5e..abf223647 100644 --- a/core/net/uipopt.h +++ b/core/net/uipopt.h @@ -481,9 +481,9 @@ void uip_log(char *msg); #error UIP_CONF_TCP_MSS is too large for the current UIP_BUFSIZE #endif /* UIP_CONF_TCP_MSS > (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) */ #define UIP_TCP_MSS (UIP_CONF_TCP_MSS) -#else +#else /* UIP_CONF_TCP_MSS */ #define UIP_TCP_MSS (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) -#endif +#endif /* UIP_CONF_TCP_MSS */ /** * The size of the advertised receiver's window.