aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 10:33:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 10:33:37 +0000
commit26ed3732876a649fb02a83e768e4392034d65653 (patch)
tree35d18da4d34fc6cf74a93112df3b27efa4a46662 /demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c
parentcbbe7cce8c93cf578d35cde1506e83a802e4eb05 (diff)
downloadChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.gz
ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.bz2
ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1229 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c
index 88701ce3e..c64f2e47d 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/web/web.c
@@ -39,8 +39,8 @@
#if LWIP_NETCONN
-const static char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";
-const static char http_index_html[] = "<html><head><title>Congrats!</title></head><body><h1>Welcome to our lwIP HTTP server!</h1><p>This is a small test page.</body></html>";
+static const char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";
+static const char http_index_html[] = "<html><head><title>Congrats!</title></head><body><h1>Welcome to our lwIP HTTP server!</h1><p>This is a small test page.</body></html>";
static void http_server_serve(struct netconn *conn) {
struct netbuf *inbuf;
@@ -92,6 +92,8 @@ WORKING_AREA(wa_http_server, WEB_THREAD_STACK_SIZE);
msg_t http_server(void *p) {
struct netconn *conn, *newconn;
+ (void)p;
+
/* Create a new TCP connection handle */
conn = netconn_new(NETCONN_TCP);
LWIP_ERROR("http_server: invalid conn", (conn != NULL), return RDY_RESET;);