From 3cae838cf001647e4e71ae9a117b7f5aae93eaa3 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Wed, 18 Jul 2018 11:33:36 +0200 Subject: [PATCH] Use kernel termios struct (?!?) --- ttynvt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ttynvt.c b/ttynvt.c index 605f91f..1025d8f 100644 --- a/ttynvt.c +++ b/ttynvt.c @@ -16,8 +16,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -601,7 +601,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg, memcpy(&tio, in_buf, in_bufsz); - speed = cfgetospeed(&tio); + speed = tio.c_cflag & (CBAUD | CBAUDEX); val = htonl(baudrate(speed)); telnet_rfc2217_cfg(tty->tn, TNS_SET_BAUDRATE, &val, 4);