volatile fixes
authorKen Raeburn <raeburn@mit.edu>
Wed, 15 Mar 2000 04:53:07 +0000 (04:53 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 15 Mar 2000 04:53:07 +0000 (04:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12113 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/read_passwd.c

index dacafc3dbc2e0b082324437146cf786f78fa399a..ed0116d50bf80af6fc431ab7b689dd5dfadad382 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-14  Ken Raeburn  <raeburn@mit.edu>
+
+       * read_passwd.c (des_read_pw_string): Make ointrfunc volatile.
+       Fix volatile decl for readin_string.
+
 1999-10-26  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
index e9e58bcc97b773dffba3ddb51289372757bd8221..c69d5ffd2d251a08d7c46a5d7a349dd292b04b3e 100644 (file)
@@ -60,10 +60,10 @@ des_read_pw_string/*_v4_compat_crock*/(return_pwd, bufsize, prompt, prompt2)
     char *prompt;
     char *prompt2;
 {
-    volatile char *readin_string = 0;
+    char *volatile readin_string = 0;
     register char *ptr;
     int scratchchar;
-    krb5_sigtype (*ointrfunc)();
+    krb5_sigtype (*volatile ointrfunc)();
     krb5_error_code errcode;
 #ifndef ECHO_PASSWORD
     struct termios echo_control, save_control;