mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-14 04:06:35 +08:00
Fix shadowing warning (when compiling in C++) in TCPIP call API. Reported by Freddie Chopin.
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
* Call netif_add() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
netifapi_do_netif_add(struct tcpip_api_call *m)
|
||||
netifapi_do_netif_add(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct netifapi_msg *msg = (struct netifapi_msg*)m;
|
||||
|
||||
@@ -72,7 +72,7 @@ netifapi_do_netif_add(struct tcpip_api_call *m)
|
||||
* Call netif_set_addr() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
netifapi_do_netif_set_addr(struct tcpip_api_call *m)
|
||||
netifapi_do_netif_set_addr(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct netifapi_msg *msg = (struct netifapi_msg*)m;
|
||||
|
||||
@@ -89,7 +89,7 @@ netifapi_do_netif_set_addr(struct tcpip_api_call *m)
|
||||
* tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
netifapi_do_netif_common(struct tcpip_api_call *m)
|
||||
netifapi_do_netif_common(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct netifapi_msg *msg = (struct netifapi_msg*)m;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
* Call ppp_set_default() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_set_default(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_set_default(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -71,7 +71,7 @@ pppapi_set_default(ppp_pcb *pcb)
|
||||
* Call ppp_set_auth() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_set_auth(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_set_auth(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -128,7 +128,7 @@ pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_pha
|
||||
* Call pppos_create() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_pppos_create(struct tcpip_api_call *m)
|
||||
pppapi_do_pppos_create(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -162,7 +162,7 @@ pppapi_pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb,
|
||||
* Call pppoe_create() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_pppoe_create(struct tcpip_api_call *m)
|
||||
pppapi_do_pppoe_create(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -200,7 +200,7 @@ pppapi_pppoe_create(struct netif *pppif, struct netif *ethif, const char *servic
|
||||
* Call pppol2tp_create() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_pppol2tp_create(struct tcpip_api_call *m)
|
||||
pppapi_do_pppol2tp_create(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -247,7 +247,7 @@ pppapi_pppol2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipad
|
||||
* Call ppp_connect() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_connect(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_connect(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -299,7 +299,7 @@ pppapi_listen(ppp_pcb *pcb, struct ppp_addrs *addrs)
|
||||
* Call ppp_close() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_close(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_close(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -324,7 +324,7 @@ pppapi_close(ppp_pcb *pcb, u8_t nocarrier)
|
||||
* Call ppp_free() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_free(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_free(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
@@ -348,7 +348,7 @@ pppapi_free(ppp_pcb *pcb)
|
||||
* Call ppp_ioctl() inside the tcpip_thread context.
|
||||
*/
|
||||
static err_t
|
||||
pppapi_do_ppp_ioctl(struct tcpip_api_call *m)
|
||||
pppapi_do_ppp_ioctl(struct tcpip_api_call_data *m)
|
||||
{
|
||||
struct pppapi_msg *msg = (struct pppapi_msg *)m;
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t* sem)
|
||||
* @return Return value from tcpip_api_call_fn
|
||||
*/
|
||||
err_t
|
||||
tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call *call)
|
||||
tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
|
||||
{
|
||||
#if LWIP_TCPIP_CORE_LOCKING
|
||||
err_t err;
|
||||
|
||||
Reference in New Issue
Block a user