summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/config.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-09-11 15:44:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-09-11 15:44:47 +0000
commit3ef4fd767b21668e19a4604f3859606c7aeba1f9 (patch)
treeda4ed96d128288eef3f275997c4698dc2ce92650 /nuttx/netutils/thttpd/config.h
parent2d54b109f67af610357159607ab41f6919ce1b94 (diff)
downloadpx4-nuttx-3ef4fd767b21668e19a4604f3859606c7aeba1f9.tar.gz
px4-nuttx-3ef4fd767b21668e19a4604f3859606c7aeba1f9.tar.bz2
px4-nuttx-3ef4fd767b21668e19a4604f3859606c7aeba1f9.zip
Reduce default memory allocation for strings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2034 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/config.h')
-rw-r--r--nuttx/netutils/thttpd/config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/netutils/thttpd/config.h b/nuttx/netutils/thttpd/config.h
index 5eade0d47..b63320c7d 100644
--- a/nuttx/netutils/thttpd/config.h
+++ b/nuttx/netutils/thttpd/config.h
@@ -144,8 +144,12 @@
# define CONFIG_THTTPD_IOBUFFERSIZE 256
# endif
+# ifndef CONFIG_THTTPD_MINSTRSIZE
+# define CONFIG_THTTPD_MINSTRSIZE 64
+# endif
+
# ifndef CONFIG_THTTPD_REALLOCINCR
-# define CONFIG_THTTPD_REALLOCINCR 128
+# define CONFIG_THTTPD_REALLOCINCR 64
# endif
# ifndef CONFIG_THTTPD_MAXREALLOC
@@ -153,7 +157,7 @@
# endif
# if CONFIG_THTTPD_IOBUFFERSIZE > 65535
-# error "Can't use uint16 for buffer"
+# error "Can't use uint16 for buffer size"
# endif
/* A list of index filenames to check. The files are searched for in this order. */