configure.in: Add HAS_ANSI_VOLATILE
authorEzra Peisach <epeisach@mit.edu>
Tue, 9 May 1995 02:58:25 +0000 (02:58 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 9 May 1995 02:58:25 +0000 (02:58 +0000)
read_pwd.c: Let autoconf decide if volatile doesn't exist. Assume exists
for everyone else.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5761 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/configure.in
src/lib/krb5/os/read_pwd.c

index d7f2ba1588f059d71c205b06e2b6f5c734d4071f..7dbd6437220526e92e3dd98f8cc5ffe76b120afc 100644 (file)
@@ -1,5 +1,11 @@
 Mon May  8 22:19:23 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
+       * read_pwd.c (krb5_read_password): use volatile on all
+               systems. Let configure define volatile to nothing on
+               systems without. 
+
+       * configure.in: Add HAS_ANSI_VOLATILE
+
        * mk_faddr.c (krb5_make_fulladdr): Allocate enough memory for
                raddr contents.
 
index fed493990f6d495557365a2e7867c6d366667ad9..4bac2beb14223a577536318d287a679fa9cc9585 100644 (file)
@@ -8,6 +8,7 @@ dnl and gmt_mktime.c (which only gets them from here...)
 AC_TIME_WITH_SYS_TIME
 AC_HAVE_HEADERS(unistd.h sys/time.h)
 AC_HEADER_EGREP(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
+HAS_ANSI_VOLATILE
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
 V5_AC_OUTPUT_MAKEFILE
index 0b29e69b05e33d59cb170ac6e3377acbaa89e61e..7107f119ed166e3550cb9d08ec46fd85fa4da015 100644 (file)
@@ -81,11 +81,8 @@ krb5_read_password(context, prompt, prompt2, return_pwd, size_return)
     int *size_return;
 {
     /* adapted from Kerberos v4 des/read_password.c */
-#if defined(__STDC__) || defined(mips) || defined(_WINDOWS)
     /* readin_string is used after a longjmp, so must be volatile */
-    volatile
-#endif
-      char *readin_string = 0;
+    volatile char *readin_string = 0;
     register char *ptr;
     int scratchchar;
     krb5_sigtype (*ointrfunc)();