net: coap: Fix compilation error
The commit cd8d4eb2b7
caused
compilation error in coap.
Change-Id: Ie6fb24d7f213a12936d75a2a2fac350e4965e0b8
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
8d154104b6
commit
37882875ef
1 changed files with 2 additions and 2 deletions
|
@ -635,7 +635,7 @@ coap_context_connect(coap_context_t *coap_ctx, uip_ipaddr_t *addr, uint16_t port
|
|||
coap_ctx->net_ctx = net_context_get(IPPROTO_UDP,
|
||||
(const struct net_addr *)&coap_ctx->addr,
|
||||
coap_ctx->port,
|
||||
(const struct net_addr *)&coap_ctx->my_addr,
|
||||
(struct net_addr *)&coap_ctx->my_addr,
|
||||
coap_ctx->my_port);
|
||||
if (!coap_ctx->net_ctx) {
|
||||
PRINTF("%s: Cannot get network context\n", __FUNCTION__);
|
||||
|
@ -671,7 +671,7 @@ int coap_context_listen(coap_context_t *coap_ctx, uip_ipaddr_t *peer_addr,
|
|||
coap_ctx->net_ctx = net_context_get(IPPROTO_UDP,
|
||||
(const struct net_addr *)&coap_ctx->addr,
|
||||
coap_ctx->port,
|
||||
(const struct net_addr *)&coap_ctx->my_addr,
|
||||
(struct net_addr *)&coap_ctx->my_addr,
|
||||
coap_ctx->my_port);
|
||||
if (!coap_ctx->net_ctx) {
|
||||
PRINTF("%s: Cannot get network context\n", __FUNCTION__);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue