From 764b2738be77b24be90b9cf5ab5f79159686a398 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 18 Nov 2007 02:54:45 +0000 Subject: [PATCH] Removed compiler warnings. --- apps/webserver/httpd-cfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/webserver/httpd-cfs.c b/apps/webserver/httpd-cfs.c index 437dea0d8..343f0d0f6 100644 --- a/apps/webserver/httpd-cfs.c +++ b/apps/webserver/httpd-cfs.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: httpd-cfs.c,v 1.2 2007/04/23 23:08:44 oliverschmidt Exp $ + * $Id: httpd-cfs.c,v 1.3 2007/11/18 02:54:45 oliverschmidt Exp $ */ #include @@ -45,7 +45,7 @@ #define STATE_WAITING 0 #define STATE_OUTPUT 1 -#define SEND_STRING(s, str) PSOCK_SEND(s, str, strlen(str)) +#define SEND_STRING(s, str) PSOCK_SEND(s, (uint8_t *)str, strlen(str)) MEMB(conns, struct httpd_state, 2); /*---------------------------------------------------------------------------*/ @@ -60,7 +60,7 @@ PT_THREAD(send_file(struct httpd_state *s)) /* If there is data in the buffer, send it */ if(s->len > 0) { - PSOCK_SEND(&s->sout, s->outputbuf, s->len); + PSOCK_SEND(&s->sout, (uint8_t *)s->outputbuf, s->len); } else { break; } @@ -186,8 +186,8 @@ httpd_appcall(void *state) return; } tcp_markconn(uip_conn, s); - PSOCK_INIT(&s->sin, s->inputbuf, sizeof(s->inputbuf) - 1); - PSOCK_INIT(&s->sout, s->inputbuf, sizeof(s->inputbuf) - 1); + PSOCK_INIT(&s->sin, (uint8_t *)s->inputbuf, sizeof(s->inputbuf) - 1); + PSOCK_INIT(&s->sout, (uint8_t *)s->inputbuf, sizeof(s->inputbuf) - 1); PT_INIT(&s->outputpt); s->state = STATE_WAITING; timer_set(&s->timer, CLOCK_SECOND * 10);