From 9f3bd71e66af2ecce680e2303e2efed9ee8cb9d0 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 6 Feb 2022 18:23:20 -0800 Subject: [PATCH] TMXR: Avoid use of C++ reserved word --- sim_tmxr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index 782a0d2b..40d8327c 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -6207,12 +6207,12 @@ return stat; static int framer_await_status (TMLN *line, int cnt) { -int i, stat, try, flen; +int i, stat, attempt, flen; ETH_PACK framer_rpkt; i = line->framer->status_cnt; -try = 0; -while (try < 5) { +attempt = 0; +while (attempt < 5) { stat = eth_read (line->framer->eth, &framer_rpkt, NULL); if (stat) { flen = framer_rpkt.msg[14] + (framer_rpkt.msg[15] << 8); @@ -6227,7 +6227,7 @@ while (try < 5) { } if (i != line->framer->status_cnt) return 1; - try++; + attempt++; sim_os_ms_sleep (50); } tmxr_debug_trace_line (line, "no status received\n");