]> andersk Git - openssh.git/blobdiff - sshtty.c
- stevesk@cvs.openbsd.org 2006/02/08 23:51:24
[openssh.git] / sshtty.c
index 2f47b06d12eb9f54cfe1fb1612d8bce685570ff1..844a5c0630edfbf887ca591e34344f0c4c14d1f3 100644 (file)
--- a/sshtty.c
+++ b/sshtty.c
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshtty.c,v 1.4 2003/07/16 10:36:28 markus Exp $");
+RCSID("$OpenBSD: sshtty.c,v 1.8 2006/02/07 01:52:50 stevesk Exp $");
 
-#include "sshtty.h"
-#include "log.h"
+#include <termios.h>
+
+#include "sshpty.h"
 
 static struct termios _saved_tio;
 static int _in_raw_mode = 0;
 
-int
-in_raw_mode(void)
-{
-       return _in_raw_mode;
-}
-
 struct termios
 get_saved_tio(void)
 {
@@ -64,8 +59,6 @@ leave_raw_mode(void)
                perror("tcsetattr");
        else
                _in_raw_mode = 0;
-
-       fatal_remove_cleanup((void (*) (void *)) leave_raw_mode, NULL);
 }
 
 void
@@ -94,6 +87,4 @@ enter_raw_mode(void)
                perror("tcsetattr");
        else
                _in_raw_mode = 1;
-
-       fatal_add_cleanup((void (*) (void *)) leave_raw_mode, NULL);
 }
This page took 0.033208 seconds and 4 git commands to generate.