diff --git a/core/net/tcpip.c b/core/net/tcpip.c index 384730396..51f0ce0e6 100644 --- a/core/net/tcpip.c +++ b/core/net/tcpip.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $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" @@ -188,7 +188,7 @@ udp_attach(struct uip_udp_conn *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; uip_udp_appstate_t *s; @@ -403,7 +403,6 @@ PROCESS_THREAD(tcpip_process, ev, data) while(1) { PROCESS_YIELD(); - eventhandler(ev, data); } diff --git a/core/net/tcpip.h b/core/net/tcpip.h index 087bc7d2e..a27e2cb30 100644 --- a/core/net/tcpip.h +++ b/core/net/tcpip.h @@ -60,7 +60,7 @@ * * Author: Adam Dunkels * - * $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__ #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 * 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); /** diff --git a/core/net/uip.c b/core/net/uip.c index 017b287a0..643598d8f 100644 --- a/core/net/uip.c +++ b/core/net/uip.c @@ -41,7 +41,7 @@ * * 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 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; diff --git a/core/net/uip.h b/core/net/uip.h index c33716ab7..a305252dc 100644 --- a/core/net/uip.h +++ b/core/net/uip.h @@ -46,7 +46,7 @@ * * 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 * 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.