From 5d031a51f9a8ba7b35f7a589828f3cc1fb8b838d Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sun, 13 Feb 2022 02:13:43 +0100 Subject: [PATCH] Cleanup --- src/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tty.c b/src/tty.c index 1b73caa..e767242 100644 --- a/src/tty.c +++ b/src/tty.c @@ -546,8 +546,8 @@ void tty_wait_for_device(void) } /* Test for accessible device file */ - int rc = access(option.tty_device, R_OK); - if (rc == 0) { + status = access(option.tty_device, R_OK); + if (status == 0) { last_errno = 0; return; }