net: contiki: Fix const argument in uip_connect()
Made the first argument to uip_connect() const, to ensure it isn't altered Importing patch daef1ea252feca2ae540c2c06f5f49496231a209 from Contiki. Original commit by Adam Dunkels <adam@thingsquare.com> Change-Id: I92a8c389b0331c2cddcdac0190965209a4488eb3 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
c95a072786
commit
e034a32095
5 changed files with 5 additions and 5 deletions
|
@ -214,7 +214,7 @@ packet_input(struct net_buf *buf)
|
|||
#if UIP_TCP
|
||||
#if UIP_ACTIVE_OPEN
|
||||
struct uip_conn *
|
||||
tcp_connect(uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
|
||||
tcp_connect(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
|
||||
{
|
||||
struct uip_conn *c;
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ CCIF void tcp_unlisten(uint16_t port);
|
|||
* memory could not be allocated for the connection.
|
||||
*
|
||||
*/
|
||||
CCIF struct uip_conn *tcp_connect(uip_ipaddr_t *ripaddr, uint16_t port,
|
||||
CCIF struct uip_conn *tcp_connect(const uip_ipaddr_t *ripaddr, uint16_t port,
|
||||
void *appstate);
|
||||
|
||||
/**
|
||||
|
|
|
@ -543,7 +543,7 @@ void uip_unlisten(uint16_t port);
|
|||
* or NULL if no connection could be allocated.
|
||||
*
|
||||
*/
|
||||
struct uip_conn *uip_connect(uip_ipaddr_t *ripaddr, uint16_t port);
|
||||
struct uip_conn *uip_connect(const uip_ipaddr_t *ripaddr, uint16_t port);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ uip_init(void)
|
|||
/*---------------------------------------------------------------------------*/
|
||||
#if UIP_ACTIVE_OPEN
|
||||
struct uip_conn *
|
||||
uip_connect(uip_ipaddr_t *ripaddr, uint16_t rport)
|
||||
uip_connect(const uip_ipaddr_t *ripaddr, uint16_t rport)
|
||||
{
|
||||
register struct uip_conn *conn, *cconn;
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ uip_init(void)
|
|||
/*---------------------------------------------------------------------------*/
|
||||
#if UIP_TCP && UIP_ACTIVE_OPEN
|
||||
struct uip_conn *
|
||||
uip_connect(uip_ipaddr_t *ripaddr, uint16_t rport)
|
||||
uip_connect(const uip_ipaddr_t *ripaddr, uint16_t rport)
|
||||
{
|
||||
register struct uip_conn *conn, *cconn;
|
||||
uint8_t c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue