Removed compiler warnings.

This commit is contained in:
oliverschmidt 2007-11-18 01:36:59 +00:00
parent de7b87868d
commit d609db3580
3 changed files with 7 additions and 21 deletions

View file

@ -29,7 +29,7 @@
*
* This file is part of the "contiki" web browser.
*
* $Id: webclient.c,v 1.3 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: webclient.c,v 1.4 2007/11/18 01:36:59 oliverschmidt Exp $
*
*/
@ -160,9 +160,8 @@ webclient_get(char *host, u16_t port, char *file)
return 1;
}
/*-----------------------------------------------------------------------------------*/
static unsigned char * CC_FASTCALL
copy_string(unsigned char *dest,
const unsigned char *src, unsigned char len)
static char * CC_FASTCALL
copy_string(char *dest, const char *src, unsigned char len)
{
return strcpy(dest, src) + len;
}
@ -219,7 +218,7 @@ parse_statusline(u16_t len)
while(len > 0 && s.httpheaderlineptr < sizeof(s.httpheaderline)) {
s.httpheaderline[s.httpheaderlineptr] = *(char *)uip_appdata;
CC_INC_CAST_POINTER(char *, uip_appdata);
uip_appdata = (char *)uip_appdata + 1;
--len;
if(s.httpheaderline[s.httpheaderlineptr] == ISO_nl) {
@ -287,7 +286,7 @@ parse_headers(u16_t len)
while(len > 0 && s.httpheaderlineptr < sizeof(s.httpheaderline)) {
s.httpheaderline[s.httpheaderlineptr] = *(char *)uip_appdata;
CC_INC_CAST_POINTER(char *, uip_appdata);
uip_appdata = (char *)uip_appdata + 1;
--len;
if(s.httpheaderline[s.httpheaderlineptr] == ISO_nl) {
/* We have an entire HTTP header line in s.httpheaderline, so