const qualifiers

This commit is contained in:
adamdunkels 2007-03-15 19:41:29 +00:00
parent fd33a89214
commit 2b119b054e
4 changed files with 8 additions and 9 deletions

View file

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: tcpip.c,v 1.4 2006/08/10 16:43:32 bg- Exp $ * $Id: tcpip.c,v 1.5 2007/03/15 19:41:29 adamdunkels Exp $
*/ */
#include "contiki-conf.h" #include "contiki-conf.h"
@ -188,7 +188,7 @@ udp_attach(struct uip_udp_conn *conn,
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
struct uip_udp_conn * struct uip_udp_conn *
udp_new(uip_ipaddr_t *ripaddr, u16_t port, void *appstate) udp_new(const uip_ipaddr_t *ripaddr, u16_t port, void *appstate)
{ {
struct uip_udp_conn *c; struct uip_udp_conn *c;
uip_udp_appstate_t *s; uip_udp_appstate_t *s;
@ -403,7 +403,6 @@ PROCESS_THREAD(tcpip_process, ev, data)
while(1) { while(1) {
PROCESS_YIELD(); PROCESS_YIELD();
eventhandler(ev, data); eventhandler(ev, data);
} }

View file

@ -60,7 +60,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: tcpip.h,v 1.5 2006/09/09 23:24:39 oliverschmidt Exp $ * $Id: tcpip.h,v 1.6 2007/03/15 19:41:29 adamdunkels Exp $
*/ */
#ifndef __TCPIP_H__ #ifndef __TCPIP_H__
#define __TCPIP_H__ #define __TCPIP_H__
@ -223,7 +223,7 @@ void udp_attach(struct uip_udp_conn *conn,
* \return A pointer to the newly created connection, or NULL if * \return A pointer to the newly created connection, or NULL if
* memory could not be allocated for the connection. * memory could not be allocated for the connection.
*/ */
CCIF struct uip_udp_conn *udp_new(uip_ipaddr_t *ripaddr, u16_t port, CCIF struct uip_udp_conn *udp_new(const uip_ipaddr_t *ripaddr, u16_t port,
void *appstate); void *appstate);
/** /**

View file

@ -41,7 +41,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uip.c,v 1.6 2006/08/26 23:40:46 oliverschmidt Exp $ * $Id: uip.c,v 1.7 2007/03/15 19:41:29 adamdunkels Exp $
* *
*/ */
@ -455,7 +455,7 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport)
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if UIP_UDP #if UIP_UDP
struct uip_udp_conn * struct uip_udp_conn *
uip_udp_new(uip_ipaddr_t *ripaddr, u16_t rport) uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport)
{ {
register struct uip_udp_conn *conn; register struct uip_udp_conn *conn;

View file

@ -46,7 +46,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uip.h,v 1.8 2007/02/01 14:27:17 bg- Exp $ * $Id: uip.h,v 1.9 2007/03/15 19:41:29 adamdunkels Exp $
* *
*/ */
@ -776,7 +776,7 @@ CCIF void uip_send(const void *data, int len);
* \return The uip_udp_conn structure for the new connection or NULL * \return The uip_udp_conn structure for the new connection or NULL
* if no connection could be allocated. * if no connection could be allocated.
*/ */
struct uip_udp_conn *uip_udp_new(uip_ipaddr_t *ripaddr, u16_t rport); struct uip_udp_conn *uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport);
/** /**
* Removed a UDP connection. * Removed a UDP connection.