Made arguments const to allow constant strings as arguments

This commit is contained in:
nifi 2010-06-14 14:08:17 +00:00
parent adc38568ad
commit f537fac5f0
2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@
*
* This file is part of the "contiki" web browser.
*
* $Id: webclient.c,v 1.9 2010/05/31 15:22:08 nifi Exp $
* $Id: webclient.c,v 1.10 2010/06/14 14:08:17 nifi Exp $
*
*/
@ -131,7 +131,7 @@ webclient_close(void)
}
/*-----------------------------------------------------------------------------------*/
unsigned char
webclient_get(char *host, u16_t port, char *file)
webclient_get(const char *host, u16_t port, const char *file)
{
uip_ipaddr_t addr;
struct uip_conn *conn;

View file

@ -29,7 +29,7 @@
*
* This file is part of the "contiki" web browser.
*
* $Id: webclient.h,v 1.1 2006/06/17 22:41:14 adamdunkels Exp $
* $Id: webclient.h,v 1.2 2010/06/14 14:08:17 nifi Exp $
*
*/
#ifndef __WEBCLIENT_H__
@ -52,7 +52,7 @@ void webclient_closed(void);
/* Functions. */
void webclient_init(void);
unsigned char webclient_get(char *host, u16_t port, char *file);
unsigned char webclient_get(const char *host, u16_t port, const char *file);
void webclient_close(void);
void webclient_appcall(void *state);