msuraev has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/29684 )
Change subject: LAPD: use bool for T200 reset flags ......................................................................
LAPD: use bool for T200 reset flags
Related: OS#4074 Change-Id: I2d1a3dd7938b079a3525c84647f82b7bc6cdfdd6 --- M src/gsm/lapd_core.c 1 file changed, 4 insertions(+), 2 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c index 5d4d801..9a4f56b 100644 --- a/src/gsm/lapd_core.c +++ b/src/gsm/lapd_core.c @@ -69,6 +69,7 @@ //#define TEST_CONTENT_RESOLUTION_NETWORK
#include <stdio.h> +#include <stdbool.h> #include <stdint.h> #include <string.h> #include <errno.h> @@ -742,7 +743,8 @@ { 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 ? */ @@ -768,7 +770,7 @@ * receipt of a valid I frame with N(R) higher than V(A), * 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. */ }