Merged patch #927 which fixes "needs modifiable lvalue" compile error in TCP_REG.

This commit is contained in:
likewise
2003-01-08 15:37:20 +00:00
parent a528a2323e
commit 5e13d495f0
2 changed files with 2 additions and 8 deletions

View File

@@ -312,14 +312,7 @@ tcp_listen(struct tcp_pcb *pcb)
#if LWIP_CALLBACK_API
lpcb->accept = tcp_accept_null;
#endif /* LWIP_CALLBACK_API */
/* workaround for compile error: assignment requires modifiable lvalue in TCP_REG */
#if LWIP_TCP_REG_COMPILE_ERROR
/* place this pcb at the start the "listening pcbs" list */
lpcb->next = tcp_listen_pcbs;
tcp_listen_pcbs = lpcb;
#else
TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb);
#endif
TCP_REG(&tcp_listen_pcbs, lpcb);
return (struct tcp_pcb *)lpcb;
}
/*-----------------------------------------------------------------------------------*/