mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
UCHAR_MAX is defined in limits.h, I do not want to add any system include, replaced to 0xff
This commit is contained in:
parent
a4f6146667
commit
c65883a727
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user