From d2e90b237046d8e9c1645a0374c907cd6b54f88f Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 21 Nov 2019 09:11:31 +0100 Subject: [PATCH] dist/tools/ethos/ethos.c: remove unusued var 'escaped' --- dist/tools/ethos/ethos.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dist/tools/ethos/ethos.c b/dist/tools/ethos/ethos.c index 1f45f73083..626ffd6e88 100644 --- a/dist/tools/ethos/ethos.c +++ b/dist/tools/ethos/ethos.c @@ -261,7 +261,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n) /* Our workaround is to prepare the data to send in a local buffer and then * call write() on the buffer instead of one char at a time */ uint8_t out[SERIAL_BUFFER_SIZE]; - size_t escaped = 0; size_t buffered = 0; while(n--) { @@ -269,7 +268,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n) if (c == LINE_FRAME_DELIMITER || c == LINE_ESC_CHAR) { out[buffered++] = LINE_ESC_CHAR; c ^= 0x20; - ++escaped; if (buffered >= SERIAL_BUFFER_SIZE) { checked_write(fd, out, buffered); buffered = 0;