PPP, MPPE, compile-out unused mppe_incomp() function

This commit is contained in:
Sylvain Rochet 2015-04-19 22:06:59 +02:00
parent 42fb74ce22
commit 33838b8c1c
2 changed files with 4 additions and 0 deletions

View File

@ -173,7 +173,9 @@ void mppe_comp_reset(ppp_pcb *pcb, ppp_mppe_state *state);
err_t mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol);
void mppe_decomp_reset(ppp_pcb *pcb, ppp_mppe_state *state);
err_t mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb);
#if 0 /* unused */
void mppe_incomp(ppp_pcb *pcb, ppp_mppe_state *state, unsigned char *ibuf, int icnt);
#endif /* unused */
#endif /* MPPE_H */
#endif /* PPP_SUPPORT && MPPE_SUPPORT */

View File

@ -389,6 +389,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
return ERR_OK;
}
#if 0 /* unused */
/*
* Incompressible data has arrived (this should never happen!).
* We should probably drop the link if the protocol is in the range
@ -406,5 +407,6 @@ void mppe_incomp(ppp_pcb *pcb, ppp_mppe_state *state, unsigned char *ibuf, int i
"(proto %04x)\n", pcb->netif->num, PPP_PROTOCOL(ibuf)));
}
}
#endif /* unused */
#endif /* PPP_SUPPORT && MPPE_SUPPORT */