From c65883a72758c54d0af5575701a1e6ce5a756a75 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 16 Jul 2012 20:09:49 +0200 Subject: [PATCH] UCHAR_MAX is defined in limits.h, I do not want to add any system include, replaced to 0xff --- src/netif/ppp/ppp_oe.c | 2 +- src/netif/ppp/pppol2tp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/ppp_oe.c b/src/netif/ppp/ppp_oe.c index b78ec301..a9cf063a 100644 --- a/src/netif/ppp/ppp_oe.c +++ b/src/netif/ppp/ppp_oe.c @@ -738,7 +738,7 @@ pppoe_timeout(void *arg) * We only enter slow retry mode if IFF_LINK1 (aka autodial) * is not set. */ - if (sc->sc_padi_retried < UCHAR_MAX) { + if (sc->sc_padi_retried < 0xff) { sc->sc_padi_retried++; } if (!sc->pcb->settings.persist && sc->sc_padi_retried >= PPPOE_DISC_MAXPADI) { diff --git a/src/netif/ppp/pppol2tp.c b/src/netif/ppp/pppol2tp.c index fd85616a..d8b20832 100644 --- a/src/netif/ppp/pppol2tp.c +++ b/src/netif/ppp/pppol2tp.c @@ -567,7 +567,7 @@ static void pppol2tp_timeout(void *arg) { switch (l2tp->phase) { case PPPOL2TP_STATE_SCCRQ_SENT: /* backoff wait */ - if (l2tp->sccrq_retried < UCHAR_MAX) { + if (l2tp->sccrq_retried < 0xff) { l2tp->sccrq_retried++; } if (!l2tp->ppp->settings.persist && l2tp->sccrq_retried >= PPPOL2TP_MAXSCCRQ) {