From f0c25aaa600b27e4243fd080f32482d322bb0dc3 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 19 Apr 2015 16:28:11 +0200 Subject: [PATCH] PPP, MSCHAP, fixed compiler warnings if MPPE support is disabled --- src/netif/ppp/chap_ms.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/netif/ppp/chap_ms.c b/src/netif/ppp/chap_ms.c index 11455784..55b3caa4 100644 --- a/src/netif/ppp/chap_ms.c +++ b/src/netif/ppp/chap_ms.c @@ -829,6 +829,9 @@ static void SetMasterKeys(ppp_pcb *pcb, char *secret, int secret_len, u_char NTR static void ChapMS(ppp_pcb *pcb, u_char *rchallenge, char *secret, int secret_len, unsigned char *response) { +#if !MPPE_SUPPORT + LWIP_UNUSED_ARG(pcb); +#endif /* !MPPE_SUPPORT */ BZERO(response, MS_CHAP_RESPONSE_LEN); ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); @@ -866,6 +869,9 @@ static void ChapMS2(ppp_pcb *pcb, u_char *rchallenge, u_char *PeerChallenge, u_char *p = &response[MS_CHAP2_PEER_CHALLENGE]; int i; LWIP_UNUSED_ARG(authenticator); +#if !MPPE_SUPPORT + LWIP_UNUSED_ARG(pcb); +#endif /* !MPPE_SUPPORT */ BZERO(response, MS_CHAP2_RESPONSE_LEN);