mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
Fix shadowing warning (when compiling in C++) in TCPIP call API. Reported by Freddie Chopin.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user