struct netconn.socket is only used with LWIP_SOCKET; added comments

This commit is contained in:
goldsimon
2010-02-12 09:58:44 +00:00
parent b6babe38ea
commit 2d1631792a
2 changed files with 9 additions and 0 deletions

View File

@@ -600,7 +600,9 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
conn->acceptmbox = SYS_MBOX_NULL;
conn->state = NETCONN_NONE;
/* initialize socket to -1 since 0 is a valid socket */
#if LWIP_SOCKET
conn->socket = -1;
#endif /* LWIP_SOCKET */
conn->callback = callback;
conn->recv_avail = 0;
#if LWIP_TCP