mirror of https://gerrit.osmocom.org/libosmocore
LAPD: use bool for T200 reset flags
Related: OS#4074 Change-Id: I2d1a3dd7938b079a3525c84647f82b7bc6cdfdd6
This commit is contained in:
parent
7bd1670520
commit
3ebeef4337
|
@ -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. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue