mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
PPP: fix unused parameter warning on prot_flavor if CHAP support is disabled
prot_flavor parameter is only used if CHAP support is enabled.
This commit is contained in:
parent
332119d7e0
commit
a4514cf416
@ -1049,6 +1049,7 @@ void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char *
|
||||
LWIP_UNUSED_ARG(name);
|
||||
LWIP_UNUSED_ARG(namelen);
|
||||
#endif /* HAVE_MULTILINK */
|
||||
LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */
|
||||
|
||||
switch (protocol) {
|
||||
#if CHAP_SUPPORT
|
||||
@ -1136,6 +1137,7 @@ void auth_withpeer_fail(ppp_pcb *pcb, int protocol) {
|
||||
void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor) {
|
||||
int bit;
|
||||
const char *prot = "";
|
||||
LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */
|
||||
|
||||
switch (protocol) {
|
||||
#if CHAP_SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user