/[lwip]/lwip/src/core/tcp.c
ViewVC logotype

Diff of /lwip/src/core/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by likewise, Sat Oct 19 13:00:27 2002 UTC revision 1.2 by likewise, Mon Nov 11 14:47:26 2002 UTC
# Line 48  Line 48 
48    
49  #include "lwip/tcp.h"  #include "lwip/tcp.h"
50    
51    #include "lwipopts.h"
52    
53  /* Incremented every coarse grained timer shot  /* Incremented every coarse grained timer shot
54     (typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */     (typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */
55  u32_t tcp_ticks;  u32_t tcp_ticks;
# Line 310  tcp_listen(struct tcp_pcb *pcb) Line 312  tcp_listen(struct tcp_pcb *pcb)
312  #if LWIP_CALLBACK_API  #if LWIP_CALLBACK_API
313    lpcb->accept = tcp_accept_null;    lpcb->accept = tcp_accept_null;
314  #endif /* LWIP_CALLBACK_API */  #endif /* LWIP_CALLBACK_API */
315    /* workaround for compile error: assignment requires modifiable lvalue in TCP_REG */
316    #if LWIP_TCP_REG_COMPILE_ERROR
317      // place this pcb at the start the "listening pcbs" list
318      lpcb->next = tcp_listen_pcbs;
319      tcp_listen_pcbs = lpcb;
320    #else
321    TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb);    TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb);
322    #endif
323    return (struct tcp_pcb *)lpcb;    return (struct tcp_pcb *)lpcb;
324  }  }
325  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26