]> andersk Git - gssapi-openssh.git/blobdiff - openssh/sshtty.c
Import of OpenSSH 5.1p1
[gssapi-openssh.git] / openssh / sshtty.c
index 04567669b13bcb466dc3bbdda1e0cddc3318c4cd..21ade4e5153dc6ec9ab790ab728700f3049ec813 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshtty.c,v 1.12 2006/08/03 03:34:42 deraadt Exp $ */
+/* $OpenBSD: sshtty.c,v 1.13 2008/05/19 15:45:07 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
 static struct termios _saved_tio;
 static int _in_raw_mode = 0;
 
-struct termios
+struct termios *
 get_saved_tio(void)
 {
-       return _saved_tio;
+       return _in_raw_mode ? &_saved_tio : NULL;
 }
 
 void
This page took 0.035322 seconds and 4 git commands to generate.