minor/coding style: removed spaces before line ending

This commit is contained in:
sg 2015-10-06 21:08:28 +02:00
parent 0737cfb84e
commit 490581a0eb
48 changed files with 215 additions and 224 deletions

View File

@ -57,7 +57,7 @@ static const char *err_strerr[] = {
"Connection reset.", /* ERR_RST -13 */ "Connection reset.", /* ERR_RST -13 */
"Connection closed.", /* ERR_CLSD -14 */ "Connection closed.", /* ERR_CLSD -14 */
"Illegal argument.", /* ERR_ARG -15 */ "Illegal argument.", /* ERR_ARG -15 */
"Low-level netif error.", /* ERR_IF -16 */ "Low-level netif error." /* ERR_IF -16 */
}; };
/** /**
@ -70,7 +70,6 @@ const char *
lwip_strerr(err_t err) lwip_strerr(err_t err)
{ {
return err_strerr[-err]; return err_strerr[-err];
} }
#endif /* LWIP_DEBUG */ #endif /* LWIP_DEBUG */

View File

@ -132,7 +132,6 @@ lwip_standard_chksum(const void *dataptr, int len)
* @param len length of data to be summed * @param len length of data to be summed
* @return host order (!) lwip checksum (non-inverted Internet sum) * @return host order (!) lwip checksum (non-inverted Internet sum)
*/ */
u16_t u16_t
lwip_standard_chksum(const void *dataptr, int len) lwip_standard_chksum(const void *dataptr, int len)
{ {
@ -189,7 +188,6 @@ lwip_standard_chksum(const void *dataptr, int len)
* *
* by Curt McDowell, Broadcom Corp. December 8th, 2005 * by Curt McDowell, Broadcom Corp. December 8th, 2005
*/ */
u16_t u16_t
lwip_standard_chksum(const void *dataptr, int len) lwip_standard_chksum(const void *dataptr, int len)
{ {

View File

@ -308,7 +308,6 @@ ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
static void static void
ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev) ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
{ {
/* dequeue the reass struct */ /* dequeue the reass struct */
if (reassdatagrams == ipr) { if (reassdatagrams == ipr) {
/* it was the first in the list */ /* it was the first in the list */

View File

@ -39,7 +39,6 @@
* <delamer@inicotech.com> * <delamer@inicotech.com>
*/ */
#include "lwip/opt.h" #include "lwip/opt.h"
#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ #if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */

View File

@ -624,7 +624,8 @@ netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_c
/** /**
* Called by a driver when its link goes up * Called by a driver when its link goes up
*/ */
void netif_set_link_up(struct netif *netif ) void
netif_set_link_up(struct netif *netif)
{ {
if (!(netif->flags & NETIF_FLAG_LINK_UP)) { if (!(netif->flags & NETIF_FLAG_LINK_UP)) {
netif->flags |= NETIF_FLAG_LINK_UP; netif->flags |= NETIF_FLAG_LINK_UP;

View File

@ -1093,8 +1093,6 @@ tcp_slowtmr_start:
++pcb_remove; ++pcb_remove;
} }
/* If the PCB should be removed, do it. */ /* If the PCB should be removed, do it. */
if (pcb_remove) { if (pcb_remove) {
struct tcp_pcb *pcb2; struct tcp_pcb *pcb2;

View File

@ -209,7 +209,6 @@ tcp_input(struct pbuf *p, struct netif *inp)
for an active connection. */ for an active connection. */
prev = NULL; prev = NULL;
for(pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { for(pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);

View File

@ -228,7 +228,6 @@ tcp_create_segment(struct tcp_pcb *pcb, struct pbuf *p, u8_t flags, u32_t seqno,
* @param pcb The TCP connection that willo enqueue the pbuf. * @param pcb The TCP connection that willo enqueue the pbuf.
* @param apiflags API flags given to tcp_write. * @param apiflags API flags given to tcp_write.
* @param first_seg true when this pbuf will be used in the first enqueued segment. * @param first_seg true when this pbuf will be used in the first enqueued segment.
* @param
*/ */
#if TCP_OVERSIZE #if TCP_OVERSIZE
static struct pbuf * static struct pbuf *

View File

@ -24,7 +24,6 @@
* This file is part of the lwIP TCP/IP stack. * This file is part of the lwIP TCP/IP stack.
* *
*/ */
#ifndef LWIP_HDR_NETIFAPI_H #ifndef LWIP_HDR_NETIFAPI_H
#define LWIP_HDR_NETIFAPI_H #define LWIP_HDR_NETIFAPI_H