From 109051a930dea23969ebc2365b7f7a96e684d230 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Mon, 6 May 2024 08:38:52 +0200 Subject: [PATCH] LGTM: variable shadows other --- dc11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dc11.cpp b/dc11.cpp index 7f4ae0e..7ebeb23 100644 --- a/dc11.cpp +++ b/dc11.cpp @@ -150,13 +150,13 @@ void dc11::operator()() continue; char buffer[32] { }; - int rc = read(pfds[i].fd, buffer, sizeof buffer); + int rc_read = read(pfds[i].fd, buffer, sizeof buffer); int line_nr = i - dc11_n_lines; std::unique_lock lck(input_lock[line_nr]); - if (rc <= 0) { // closed or error? + if (rc_read <= 0) { // closed or error? DOLOG(info, false, "Failed reading from port %d", i - dc11_n_lines + 1); registers[line_nr * 4 + 0] |= 0140000; // "ERROR", CARRIER TRANSITION @@ -165,7 +165,7 @@ void dc11::operator()() pfds[i].fd = INVALID_SOCKET; } else { - for(int k=0; k