mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
PPP, cleared warnings if PPP_DEBUG is off
This commit is contained in:
parent
59d8e76081
commit
c37ecb1552
@ -389,7 +389,9 @@ pppoe_disc_input(struct netif *netif, struct pbuf *pb)
|
|||||||
u16_t tag, len;
|
u16_t tag, len;
|
||||||
u16_t session, plen;
|
u16_t session, plen;
|
||||||
struct pppoe_softc *sc;
|
struct pppoe_softc *sc;
|
||||||
const char *err_msg;
|
#if PPP_DEBUG
|
||||||
|
const char *err_msg = NULL;
|
||||||
|
#endif /* PPP_DEBUG */
|
||||||
u8_t *ac_cookie;
|
u8_t *ac_cookie;
|
||||||
u16_t ac_cookie_len;
|
u16_t ac_cookie_len;
|
||||||
#ifdef PPPOE_SERVER
|
#ifdef PPPOE_SERVER
|
||||||
@ -409,7 +411,6 @@ pppoe_disc_input(struct netif *netif, struct pbuf *pb)
|
|||||||
|
|
||||||
pb = ppp_singlebuf(pb);
|
pb = ppp_singlebuf(pb);
|
||||||
|
|
||||||
err_msg = NULL;
|
|
||||||
if (pb->len < sizeof(*ethhdr)) {
|
if (pb->len < sizeof(*ethhdr)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@ -479,6 +480,7 @@ pppoe_disc_input(struct netif *netif, struct pbuf *pb)
|
|||||||
ac_cookie_len = len;
|
ac_cookie_len = len;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if PPP_DEBUG
|
||||||
case PPPOE_TAG_SNAME_ERR:
|
case PPPOE_TAG_SNAME_ERR:
|
||||||
err_msg = "SERVICE NAME ERROR";
|
err_msg = "SERVICE NAME ERROR";
|
||||||
break;
|
break;
|
||||||
@ -488,6 +490,7 @@ pppoe_disc_input(struct netif *netif, struct pbuf *pb)
|
|||||||
case PPPOE_TAG_GENERIC_ERR:
|
case PPPOE_TAG_GENERIC_ERR:
|
||||||
err_msg = "GENERIC ERROR";
|
err_msg = "GENERIC ERROR";
|
||||||
break;
|
break;
|
||||||
|
#endif /* PPP_DEBUG */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -866,6 +866,9 @@ static void
|
|||||||
pppos_vjc_config(ppp_pcb *ppp, void *ctx, int vjcomp, int cidcomp, int maxcid)
|
pppos_vjc_config(ppp_pcb *ppp, void *ctx, int vjcomp, int cidcomp, int maxcid)
|
||||||
{
|
{
|
||||||
pppos_pcb *pppos = (pppos_pcb *)ctx;
|
pppos_pcb *pppos = (pppos_pcb *)ctx;
|
||||||
|
#if !PPP_DEBUG
|
||||||
|
LWIP_UNUSED_ARG(ppp);
|
||||||
|
#endif /* !PPP_DEBUG */
|
||||||
|
|
||||||
pppos->vj_enabled = vjcomp;
|
pppos->vj_enabled = vjcomp;
|
||||||
pppos->vj_comp.compressSlot = cidcomp;
|
pppos->vj_comp.compressSlot = cidcomp;
|
||||||
@ -879,6 +882,9 @@ pppos_netif_input(ppp_pcb *ppp, void *ctx, struct pbuf *p, u16_t protocol)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
pppos_pcb *pppos = (pppos_pcb *)ctx;
|
pppos_pcb *pppos = (pppos_pcb *)ctx;
|
||||||
|
#if !PPP_DEBUG
|
||||||
|
LWIP_UNUSED_ARG(ppp);
|
||||||
|
#endif /* !PPP_DEBUG */
|
||||||
|
|
||||||
switch(protocol) {
|
switch(protocol) {
|
||||||
case PPP_VJC_COMP: /* VJ compressed TCP */
|
case PPP_VJC_COMP: /* VJ compressed TCP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user