]> Zhao Yanbai Git Server - minix.git/commitdiff
LIBLWIP - fixed clang warnings
authorTomas Hruby <tom@minix3.org>
Thu, 11 Oct 2012 10:23:44 +0000 (10:23 +0000)
committerLionel Sambuc <lionel@minix3.org>
Mon, 25 Mar 2013 15:51:24 +0000 (16:51 +0100)
lib/liblwip/include/arch/cc.h
lib/liblwip/include/lwip/mem.h
lib/liblwip/include/lwipopts.h

index afad1469b1d1a2a08ef55ff555913c84fb465122..21599d7fd549317d2e3e06e8c3abd73b319d2cb0 100644 (file)
@@ -4,6 +4,7 @@
 #include <sys/cdefs.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <minix/sysutil.h>
 #include <errno.h>
 #include <assert.h>
 
index e7d8b8baf09485c4dd84c642497edf8330fa8828..67cf005284b800d96ce23c4b69c1e1ea2ae1c4a4 100644 (file)
@@ -41,6 +41,7 @@ extern "C" {
 #if MEM_LIBC_MALLOC
 
 #include <stddef.h> /* for size_t */
+#include <stdlib.h>
 
 typedef size_t mem_size_t;
 
index 8717c8aaed537f5c19cf8b514aecd1d19e669ce1..d3d6ff0bb58d26894069101e9db05246b6307c5e 100644 (file)
@@ -68,7 +68,7 @@
 #define CHECKSUM_CHECK_TCP                     1
 
 #define TCP_MSS                                (1460)
-#define TCP_SND_BUF                    (256 * TCP_MSS)
+#define TCP_SND_BUF                    (44 * TCP_MSS)
 #define TCP_SNDLOWAT                   (256)
 #define TCP_SND_QUEUELEN               (512)
 #define TCP_WND                                ((1 << 16) - 1)