Fix shadowing warning (when compiling in C++) in TCPIP call API. Reported by Freddie Chopin.

This commit is contained in:
Dirk Ziegelmeier
2016-03-31 19:52:20 +02:00
parent c8b65f6c1d
commit 141aeaab3d
6 changed files with 19 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ typedef void (*netifapi_void_fn)(struct netif *netif);
typedef err_t (*netifapi_errt_fn)(struct netif *netif);
struct netifapi_msg {
struct tcpip_api_call call;
struct tcpip_api_call_data call;
struct netif *netif;
union {
struct {

View File

@@ -108,7 +108,7 @@ struct pppapi_msg_msg {
};
struct pppapi_msg {
struct tcpip_api_call call;
struct tcpip_api_call_data call;
struct pppapi_msg_msg msg;
};

View File

@@ -97,7 +97,7 @@ extern sys_mutex_t lock_tcpip_core;
err_t tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t* sem);
struct tcpip_api_call
struct tcpip_api_call_data
{
#if !LWIP_TCPIP_CORE_LOCKING
err_t err;
@@ -108,8 +108,8 @@ struct tcpip_api_call
u8_t dummy; /* avoid empty struct :-( */
#endif /* !LWIP_TCPIP_CORE_LOCKING */
};
typedef err_t (*tcpip_api_call_fn)(struct tcpip_api_call* call);
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call *call);
typedef err_t (*tcpip_api_call_fn)(struct tcpip_api_call_data* call);
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call);
enum tcpip_msg_type {
TCPIP_MSG_API,
@@ -132,7 +132,7 @@ struct tcpip_msg {
} api_msg;
struct {
tcpip_api_call_fn function;
struct tcpip_api_call *arg;
struct tcpip_api_call_data *arg;
sys_sem_t *sem;
} api_call;
struct {