From: fbernon Date: Thu, 9 Jul 2009 10:21:16 +0000 (+0000) Subject: minor changes: typos and coding style X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-lwip.git/commitdiff_plain/ce5699f41b6b2df25ba20ca6718555150fffe442 minor changes: typos and coding style --- diff --git a/doc/sys_arch.txt b/doc/sys_arch.txt index 226d4209..66310a91 100644 --- a/doc/sys_arch.txt +++ b/doc/sys_arch.txt @@ -195,7 +195,7 @@ cc.h - Architecture environment, some compiler specific, some Platform specific diagnostic output - LWIP_PLATFORM_DIAG(x) - non-fatal, print a message. 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 "lightweight" synchronization mechanisms - diff --git a/src/api/api_msg.c b/src/api/api_msg.c index d674812c..4fe4e38b 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -538,9 +538,9 @@ netconn_alloc(enum netconn_type t, netconn_callback callback) #if LWIP_TCP conn->write_msg = NULL; conn->write_offset = 0; -# if LWIP_TCPIP_CORE_LOCKING +#if LWIP_TCPIP_CORE_LOCKING conn->write_delayed = 0; -# endif /* LWIP_TCPIP_CORE_LOCKING */ +#endif /* LWIP_TCPIP_CORE_LOCKING */ #endif /* LWIP_TCP */ #if LWIP_SO_RCVTIMEO conn->recv_timeout = 0; diff --git a/src/core/ipv4/igmp.c b/src/core/ipv4/igmp.c index 062500aa..7c07bc46 100644 --- a/src/core/ipv4/igmp.c +++ b/src/core/ipv4/igmp.c @@ -668,7 +668,7 @@ void igmp_delaying_member( struct igmp_group *group, u8_t maxresp) { 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); group->group_state = IGMP_GROUP_DELAYING_MEMBER; } diff --git a/src/core/netif.c b/src/core/netif.c index 34206bce..c9b6b9b5 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -460,10 +460,10 @@ void netif_set_link_up(struct netif *netif ) netif->flags |= NETIF_FLAG_LINK_UP; #if LWIP_ARP - /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ - if (netif->flags & NETIF_FLAG_ETHARP) { - etharp_gratuitous(netif); - } + /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ + if (netif->flags & NETIF_FLAG_ETHARP) { + etharp_gratuitous(netif); + } #endif /* LWIP_ARP */ #if LWIP_IGMP diff --git a/src/include/lwip/api.h b/src/include/lwip/api.h index 65998a01..df0e0e57 100644 --- a/src/include/lwip/api.h +++ b/src/include/lwip/api.h @@ -145,12 +145,12 @@ struct netconn { /** TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores how much is already sent. */ 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, this temporarily stores whether to wake up the original application task if data couldn't be sent in the first try. */ u8_t write_delayed; -# endif /* LWIP_TCPIP_CORE_LOCKING */ +#endif /* LWIP_TCPIP_CORE_LOCKING */ #endif /* LWIP_TCP */ /** A callback function that is informed about events for this netconn */ netconn_callback callback;