瀏覽代碼

simplify termios handling

Jan Klemkow 6 年之前
父節點
當前提交
51365d26c1
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;