minor changes: typos and coding style

This commit is contained in:
fbernon 2009-07-09 10:21:16 +00:00
parent 1eee0be951
commit ce5699f41b
5 changed files with 10 additions and 10 deletions

View File

@ -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 -

View File

@ -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;

View File

@ -668,7 +668,7 @@ void
igmp_delaying_member( struct igmp_group *group, u8_t maxresp) igmp_delaying_member( struct igmp_group *group, u8_t maxresp)
{ {
if ((group->group_state == IGMP_GROUP_IDLE_MEMBER) || if ((group->group_state == IGMP_GROUP_IDLE_MEMBER) ||
((group->group_state == IGMP_GROUP_DELAYING_MEMBER) && (maxresp > group->timer))) { ((group->group_state == IGMP_GROUP_DELAYING_MEMBER) && (maxresp > group->timer))) {
igmp_start_timer(group, (maxresp)/2); igmp_start_timer(group, (maxresp)/2);
group->group_state = IGMP_GROUP_DELAYING_MEMBER; group->group_state = IGMP_GROUP_DELAYING_MEMBER;
} }

View File

@ -460,10 +460,10 @@ void netif_set_link_up(struct netif *netif )
netif->flags |= NETIF_FLAG_LINK_UP; netif->flags |= NETIF_FLAG_LINK_UP;
#if LWIP_ARP #if LWIP_ARP
/* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
if (netif->flags & NETIF_FLAG_ETHARP) { if (netif->flags & NETIF_FLAG_ETHARP) {
etharp_gratuitous(netif); etharp_gratuitous(netif);
} }
#endif /* LWIP_ARP */ #endif /* LWIP_ARP */
#if LWIP_IGMP #if LWIP_IGMP

View File

@ -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;