Made the first argument to uip_connect() const, to ensure it isn't altered
This commit is contained in:
parent
daef1ea252
commit
e9f180e756
@ -228,7 +228,7 @@ packet_input(void)
|
|||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
#if UIP_ACTIVE_OPEN
|
#if UIP_ACTIVE_OPEN
|
||||||
struct uip_conn *
|
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;
|
struct uip_conn *c;
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ CCIF void tcp_unlisten(uint16_t port);
|
|||||||
* memory could not be allocated for the connection.
|
* 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);
|
void *appstate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -600,7 +600,7 @@ void uip_unlisten(uint16_t port);
|
|||||||
* or NULL if no connection could be allocated.
|
* 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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -386,7 +386,7 @@ uip_init(void)
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_ACTIVE_OPEN
|
#if UIP_ACTIVE_OPEN
|
||||||
struct uip_conn *
|
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;
|
register struct uip_conn *conn, *cconn;
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ uip_init(void)
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_TCP && UIP_ACTIVE_OPEN
|
#if UIP_TCP && UIP_ACTIVE_OPEN
|
||||||
struct uip_conn *
|
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;
|
register struct uip_conn *conn, *cconn;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user