changeset 6215:460e57cd217f

* getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
author Simon Josefsson <simon@josefsson.org>
date Tue, 06 Sep 2005 08:21:32 +0000
parents afb93b90dcb8
children f2f9686c2087
files lib/ChangeLog lib/getpass.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-06  Simon Josefsson  <jas@extundo.com>
+
+	* getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
+	TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
+
 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
 
 	Change bitset word type from unsigned int to unsigned long int,
--- a/lib/getpass.c
+++ b/lib/getpass.c
@@ -158,7 +158,7 @@
     }
 
   /* Restore the original setting.  */
-#if TCSETATTR
+#if HAVE_TCSETATTR
   if (tty_changed)
     tcsetattr (fileno (in), TCSAFLUSH | TCSASOFT, &s);
 #endif