TMXR: Avoid use of C++ reserved word
This commit is contained in:
parent
d8e41d64a3
commit
9f3bd71e66
1 changed files with 4 additions and 4 deletions
|
@ -6207,12 +6207,12 @@ return stat;
|
||||||
|
|
||||||
static int framer_await_status (TMLN *line, int cnt)
|
static int framer_await_status (TMLN *line, int cnt)
|
||||||
{
|
{
|
||||||
int i, stat, try, flen;
|
int i, stat, attempt, flen;
|
||||||
ETH_PACK framer_rpkt;
|
ETH_PACK framer_rpkt;
|
||||||
|
|
||||||
i = line->framer->status_cnt;
|
i = line->framer->status_cnt;
|
||||||
try = 0;
|
attempt = 0;
|
||||||
while (try < 5) {
|
while (attempt < 5) {
|
||||||
stat = eth_read (line->framer->eth, &framer_rpkt, NULL);
|
stat = eth_read (line->framer->eth, &framer_rpkt, NULL);
|
||||||
if (stat) {
|
if (stat) {
|
||||||
flen = framer_rpkt.msg[14] + (framer_rpkt.msg[15] << 8);
|
flen = framer_rpkt.msg[14] + (framer_rpkt.msg[15] << 8);
|
||||||
|
@ -6227,7 +6227,7 @@ while (try < 5) {
|
||||||
}
|
}
|
||||||
if (i != line->framer->status_cnt)
|
if (i != line->framer->status_cnt)
|
||||||
return 1;
|
return 1;
|
||||||
try++;
|
attempt++;
|
||||||
sim_os_ms_sleep (50);
|
sim_os_ms_sleep (50);
|
||||||
}
|
}
|
||||||
tmxr_debug_trace_line (line, "no status received\n");
|
tmxr_debug_trace_line (line, "no status received\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue