Explorar o código

simplify termios handling

Jan Klemkow %!s(int64=6) %!d(string=hai) anos
pai
achega
51365d26c1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      scroll.c

+ 1 - 2
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;