mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-05 06:39:52 +00:00
PPP, L2TP: fix PPPOL2TP_AUTH_SUPPORT == 0 support
Fix compiler warnings on unused parameters and a function signature mismatch in PPPAPI.
This commit is contained in:
parent
03a9aac157
commit
8c3c96baf7
@ -222,6 +222,7 @@ pppapi_do_pppol2tp_create(struct tcpip_api_call_data *m)
|
|||||||
msg->msg.msg.l2tpcreate.secret_len,
|
msg->msg.msg.l2tpcreate.secret_len,
|
||||||
#else /* PPPOL2TP_AUTH_SUPPORT */
|
#else /* PPPOL2TP_AUTH_SUPPORT */
|
||||||
NULL,
|
NULL,
|
||||||
|
0,
|
||||||
#endif /* PPPOL2TP_AUTH_SUPPORT */
|
#endif /* PPPOL2TP_AUTH_SUPPORT */
|
||||||
msg->msg.msg.l2tpcreate.link_status_cb, msg->msg.msg.l2tpcreate.ctx_cb);
|
msg->msg.msg.l2tpcreate.link_status_cb, msg->msg.msg.l2tpcreate.ctx_cb);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
@ -239,6 +240,10 @@ pppapi_pppol2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipad
|
|||||||
ppp_pcb* result;
|
ppp_pcb* result;
|
||||||
PPPAPI_VAR_DECLARE(msg);
|
PPPAPI_VAR_DECLARE(msg);
|
||||||
PPPAPI_VAR_ALLOC_RETURN_NULL(msg);
|
PPPAPI_VAR_ALLOC_RETURN_NULL(msg);
|
||||||
|
#if !PPPOL2TP_AUTH_SUPPORT
|
||||||
|
LWIP_UNUSED_ARG(secret);
|
||||||
|
LWIP_UNUSED_ARG(secret_len);
|
||||||
|
#endif /* !PPPOL2TP_AUTH_SUPPORT */
|
||||||
|
|
||||||
PPPAPI_VAR_REF(msg).msg.ppp = NULL;
|
PPPAPI_VAR_REF(msg).msg.ppp = NULL;
|
||||||
PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.pppif = pppif;
|
PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.pppif = pppif;
|
||||||
|
@ -113,6 +113,10 @@ ppp_pcb *pppol2tp_create(struct netif *pppif,
|
|||||||
ppp_pcb *ppp;
|
ppp_pcb *ppp;
|
||||||
pppol2tp_pcb *l2tp;
|
pppol2tp_pcb *l2tp;
|
||||||
struct udp_pcb *udp;
|
struct udp_pcb *udp;
|
||||||
|
#if !PPPOL2TP_AUTH_SUPPORT
|
||||||
|
LWIP_UNUSED_ARG(secret);
|
||||||
|
LWIP_UNUSED_ARG(secret_len);
|
||||||
|
#endif /* !PPPOL2TP_AUTH_SUPPORT */
|
||||||
|
|
||||||
if (ipaddr == NULL) {
|
if (ipaddr == NULL) {
|
||||||
goto ipaddr_check_failed;
|
goto ipaddr_check_failed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user