From 2be86fbc3e08836156b780e2c3120bafd8e1f910 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 25 Apr 2016 20:50:14 +0200 Subject: [PATCH] Fix compile of api_lib.c when LWIP_MPU_COMPATIBLE is enabled --- src/api/api_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api_lib.c b/src/api/api_lib.c index 7044c1fe..410984a6 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -200,7 +200,7 @@ netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) API_MSG_VAR_REF(msg).conn = conn; API_MSG_VAR_REF(msg).msg.ad.local = local; #if LWIP_MPU_COMPATIBLE - TCPIP_APIMSG(msg, lwip_netconn_do_getaddr, err); + err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg)); *addr = msg->msg.ad.ipaddr; *port = msg->msg.ad.port; #else /* LWIP_MPU_COMPATIBLE */