LAPD: use bool for T200 reset flags

Related: OS#4074
Change-Id: I2d1a3dd7938b079a3525c84647f82b7bc6cdfdd6
This commit is contained in:
Max 2022-10-09 20:25:52 +03:00
parent a77ea8268f
commit 42b93457f0
1 changed files with 3 additions and 2 deletions

View File

@ -742,7 +742,8 @@ static void lapd_acknowledge(struct lapd_msg_ctx *lctx)
{
struct lapd_datalink *dl = lctx->dl;
uint8_t nr = lctx->n_recv;
int s = 0, rej = 0, t200_reset = 0;
int s = 0, rej = 0;
bool t200_reset = false;
int i, h;
/* supervisory frame ? */
@ -769,7 +770,7 @@ static void lapd_acknowledge(struct lapd_msg_ctx *lctx)
* or an REJ with an N(R) equal to V(A). */
if ((!rej && nr != dl->v_ack)
|| (rej && nr == dl->v_ack)) {
t200_reset = 1;
t200_reset = true;
lapd_stop_t200(dl);
/* 5.5.3.1 Note 1 + 2 imply timer recovery cond. */
}