From 36043a92e7927ec5eec2cff0f5d65337acd916b0 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sat, 20 Feb 2010 10:01:43 +0000 Subject: [PATCH] Restructured TCP_PCB_COMMON for a smaller size (u16_t at the end) --- src/include/lwip/tcp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index 317916e4..78e6d984 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -336,7 +336,7 @@ enum tcp_state { * @return ERR_OK: accept the new connection, * any other err_t abortsthe new connection */ -#define DEF_ACCEPT_CALLBACK tcp_accept_fn accept +#define DEF_ACCEPT_CALLBACK tcp_accept_fn accept; #else /* LWIP_CALLBACK_API */ #define DEF_ACCEPT_CALLBACK #endif /* LWIP_CALLBACK_API */ @@ -349,10 +349,10 @@ enum tcp_state { enum tcp_state state; /* TCP state */ \ u8_t prio; \ void *callback_arg; \ - /* ports are in host byte order */ \ - u16_t local_port; \ /* the accept callback for listen- and normal pcbs, if LWIP_CALLBACK_API */ \ - DEF_ACCEPT_CALLBACK + DEF_ACCEPT_CALLBACK \ + /* ports are in host byte order */ \ + u16_t local_port /* the TCP protocol control block */