From ef238e0940a56298061f60c0c8d66cb7c4e2f653 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 28 Oct 2025 10:44:57 +0100 Subject: fix: remove two unused-variable warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matěj Cepl --- src/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/random.c') diff --git a/src/random.c b/src/random.c index 5a07e0d..4c92745 100644 --- a/src/random.c +++ b/src/random.c @@ -60,7 +60,6 @@ static int lua_get_random_bytes(lua_State* L) { return 2; } - ssize_t n; ssize_t total_read = 0; #ifdef _WIN32 @@ -99,7 +98,7 @@ static int lua_get_random_bytes(lua_State* L) { } while (total_read < num_bytes) { - n = read(fd, buffer + total_read, num_bytes - total_read); + ssize_t n = read(fd, buffer + total_read, num_bytes - total_read); if (n < 0) { if (errno == EINTR) { -- cgit v1.2.3-55-g6feb