summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/prompter.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>1999-10-22 22:17:35 +0000
committerKen Raeburn <raeburn@mit.edu>1999-10-22 22:17:35 +0000
commit34a58b737bec267bef230600d9f400cc54cc8abc (patch)
treef9d0ae517501b38630367374cfafd9f71c63d25e /src/lib/krb5/os/prompter.c
parentcd58663542549b700507e03c95c29ea5398f59b0 (diff)
downloadkrb5-34a58b737bec267bef230600d9f400cc54cc8abc.tar.gz
krb5-34a58b737bec267bef230600d9f400cc54cc8abc.tar.xz
krb5-34a58b737bec267bef230600d9f400cc54cc8abc.zip
Silence gcc longjmp warnings:
* prompter.c (krb5_prompter_posix): Make ointrfunc, fd, and errcode volatile. * promptusr.c (krb5_os_get_tty_uio): Make ointrfunc and retval volatile. * read_pwd.c (krb5_read_password): Make ointrfunc volatile. Fix volatile decl for readin_string (pointer is volatile, doesn't point to volatile). * changepw.c (krb5_change_password): Wait only two minutes, not indefinitely, for a response from the kpasswd server. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11873 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/prompter.c')
-rw-r--r--src/lib/krb5/os/prompter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/krb5/os/prompter.c b/src/lib/krb5/os/prompter.c
index b43e0ae0e1..800377f78c 100644
--- a/src/lib/krb5/os/prompter.c
+++ b/src/lib/krb5/os/prompter.c
@@ -34,12 +34,12 @@ krb5_prompter_posix(krb5_context context,
register char *ptr;
int scratchchar;
- krb5_sigtype (*ointrfunc)();
- krb5_error_code errcode;
+ krb5_sigtype (*volatile ointrfunc)();
+ volatile krb5_error_code errcode;
int i;
#ifndef ECHO_PASSWORD
struct termios echo_control, save_control;
- int fd;
+ volatile int fd;
#endif
if (name) {