From 886cfbe12de773f3577bf17f1046775ba78b8cd8 Mon Sep 17 00:00:00 2001 From: jifl Date: Fri, 11 Jan 2008 14:28:58 +0000 Subject: [PATCH] Minor spelling typos and formatting fixes. --- src/core/mem.c | 2 +- src/core/udp.c | 4 ++-- src/include/lwip/opt.h | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/mem.c b/src/core/mem.c index 68d3ab3d..7ba81535 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -10,7 +10,7 @@ * To let mem_malloc() use pools (prevents fragmentation and is much faster than * a heap but might waste some memory), define MEM_USE_POOLS to 1, define * MEM_USE_CUSTOM_POOLS to 1 and create a file "lwippools.h" that includes a list - * of pools like the this (more pools can be added between _START and _END): + * of pools like this (more pools can be added between _START and _END): * * Define three pools with sizes 256, 512, and 1512 bytes * LWIP_MALLOC_MEMPOOL_START diff --git a/src/core/udp.c b/src/core/udp.c index a2c19bf0..2f36c745 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -412,7 +412,7 @@ udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, /* not enough space to add an UDP header to first pbuf in given p chain? */ if (pbuf_header(p, UDP_HLEN)) { - /* allocate header in a seperate new pbuf */ + /* allocate header in a separate new pbuf */ q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM); /* new header pbuf could not be allocated? */ if (q == NULL) { @@ -527,7 +527,7 @@ udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, /* TODO: must this be increased even if error occured? */ snmp_inc_udpoutdatagrams(); - /* did we chain a seperate header pbuf earlier? */ + /* did we chain a separate header pbuf earlier? */ if (q != p) { /* free the header pbuf */ pbuf_free(q); diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index a34cc27b..c7edb00a 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -390,8 +390,8 @@ /** * IP_FRAG_USES_STATIC_BUF==1: Use a static MTU-sized buffer for IP * fragmentation. Otherwise pbufs are allocated and reference the original - * packet data to be fragmented. -*/ + * packet data to be fragmented. + */ #ifndef IP_FRAG_USES_STATIC_BUF #define IP_FRAG_USES_STATIC_BUF 1 #endif @@ -763,7 +763,6 @@ * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is * designed to accomodate single full size TCP frame in one pbuf, including * TCP_MSS, IP header, and link header. -* */ #ifndef PBUF_POOL_BUFSIZE #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)