commit 51365d26c1e3f2e7074ff863cae3dbe25d2a382b
parent 5e7c9598849628ba45b2b152202c20610e2eebbb
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Tue, 31 Dec 2019 05:10:54 +0100
simplify termios handling
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scroll.c b/scroll.c
@@ -159,8 +159,7 @@ main(int argc, char *argv[])
if (fcntl(mfd, F_SETFL, f /*| O_NONBLOCK*/) == -1)
die("fcntl:");
- struct termios new;
- new = dfl;
+ struct termios new = dfl;
cfmakeraw(&new);
new.c_cc[VMIN ] = 1;
new.c_cc[VTIME] = 0;