From 8a9c356059ccf359f2d774e6f7e77bd1b9b566b8 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 4 Aug 1995 07:17:24 +0000 Subject: [PATCH] Add missing ospeed initialization --- usr.sbin/watch/watch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6691067820a1..6aebc999e1f7 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -18,13 +18,13 @@ #include #include #include +#include +#include #include #include #include #include #include -#include -#include #include @@ -92,6 +92,7 @@ set_tty() sgn = sgo; sgn.sg_flags |= CBREAK; sgn.sg_flags &= ~ECHO; + ospeed = sgo.sg_ospeed; ioctl(std_in, TIOCSETP, &sgn); } @@ -162,8 +163,8 @@ setup_scr() if (tgetent(tbuf, term) == 1) if (tgetstr("cl", &cbuf)) clear_ok = 1; - clear(); set_tty(); + clear(); }