Made arguments const to allow constant strings as arguments
This commit is contained in:
parent
adc38568ad
commit
f537fac5f0
|
@ -29,7 +29,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the "contiki" web browser.
|
* 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
|
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;
|
uip_ipaddr_t addr;
|
||||||
struct uip_conn *conn;
|
struct uip_conn *conn;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the "contiki" web browser.
|
* 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__
|
#ifndef __WEBCLIENT_H__
|
||||||
|
@ -52,7 +52,7 @@ void webclient_closed(void);
|
||||||
|
|
||||||
/* Functions. */
|
/* Functions. */
|
||||||
void webclient_init(void);
|
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_close(void);
|
||||||
|
|
||||||
void webclient_appcall(void *state);
|
void webclient_appcall(void *state);
|
||||||
|
|
Loading…
Reference in a new issue