mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
minor changes: typos and coding style
This commit is contained in:
parent
1eee0be951
commit
ce5699f41b
@ -195,7 +195,7 @@ cc.h - Architecture environment, some compiler specific, some
|
|||||||
Platform specific diagnostic output -
|
Platform specific diagnostic output -
|
||||||
LWIP_PLATFORM_DIAG(x) - non-fatal, print a message.
|
LWIP_PLATFORM_DIAG(x) - non-fatal, print a message.
|
||||||
LWIP_PLATFORM_ASSERT(x) - fatal, print message and abandon execution.
|
LWIP_PLATFORM_ASSERT(x) - fatal, print message and abandon execution.
|
||||||
Portybility defines for printf formatters:
|
Portability defines for printf formatters:
|
||||||
U16_F, S16_F, X16_F, U32_F, S32_F, X32_F, SZT_F
|
U16_F, S16_F, X16_F, U32_F, S32_F, X32_F, SZT_F
|
||||||
|
|
||||||
"lightweight" synchronization mechanisms -
|
"lightweight" synchronization mechanisms -
|
||||||
|
@ -538,9 +538,9 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
|
|||||||
#if LWIP_TCP
|
#if LWIP_TCP
|
||||||
conn->write_msg = NULL;
|
conn->write_msg = NULL;
|
||||||
conn->write_offset = 0;
|
conn->write_offset = 0;
|
||||||
# if LWIP_TCPIP_CORE_LOCKING
|
#if LWIP_TCPIP_CORE_LOCKING
|
||||||
conn->write_delayed = 0;
|
conn->write_delayed = 0;
|
||||||
# endif /* LWIP_TCPIP_CORE_LOCKING */
|
#endif /* LWIP_TCPIP_CORE_LOCKING */
|
||||||
#endif /* LWIP_TCP */
|
#endif /* LWIP_TCP */
|
||||||
#if LWIP_SO_RCVTIMEO
|
#if LWIP_SO_RCVTIMEO
|
||||||
conn->recv_timeout = 0;
|
conn->recv_timeout = 0;
|
||||||
|
@ -145,12 +145,12 @@ struct netconn {
|
|||||||
/** TCP: when data passed to netconn_write doesn't fit into the send buffer,
|
/** TCP: when data passed to netconn_write doesn't fit into the send buffer,
|
||||||
this temporarily stores how much is already sent. */
|
this temporarily stores how much is already sent. */
|
||||||
size_t write_offset;
|
size_t write_offset;
|
||||||
# if LWIP_TCPIP_CORE_LOCKING
|
#if LWIP_TCPIP_CORE_LOCKING
|
||||||
/** TCP: when data passed to netconn_write doesn't fit into the send buffer,
|
/** TCP: when data passed to netconn_write doesn't fit into the send buffer,
|
||||||
this temporarily stores whether to wake up the original application task
|
this temporarily stores whether to wake up the original application task
|
||||||
if data couldn't be sent in the first try. */
|
if data couldn't be sent in the first try. */
|
||||||
u8_t write_delayed;
|
u8_t write_delayed;
|
||||||
# endif /* LWIP_TCPIP_CORE_LOCKING */
|
#endif /* LWIP_TCPIP_CORE_LOCKING */
|
||||||
#endif /* LWIP_TCP */
|
#endif /* LWIP_TCP */
|
||||||
/** A callback function that is informed about events for this netconn */
|
/** A callback function that is informed about events for this netconn */
|
||||||
netconn_callback callback;
|
netconn_callback callback;
|
||||||
|
Loading…
Reference in New Issue
Block a user