diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-23 12:53:49 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-23 12:53:49 +0000 |
commit | 15799403ada7bea696c9882cf0006a4a40ff5baf (patch) | |
tree | d10d99381cdc08f756873fb26687035c920ec0d1 /crypto/des/read_pwd.c | |
parent | 3a1daca9efa22c3d9e38f40c84b48388fa57585d (diff) |
Fix more warnings.
Diffstat (limited to 'crypto/des/read_pwd.c')
-rw-r--r-- | crypto/des/read_pwd.c | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index f2a4f4d518..3041ab2dfe 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -223,14 +223,27 @@ int verify; TTY_STRUCT tty_orig,tty_new; #endif #endif - int number=5; - int ok=0; - int ps=0; - int is_a_tty=1; - - FILE *tty=NULL; + int number; + int ok; + /* statics are simply to avoid warnings about longjmp clobbering + things */ + static int ps; + int is_a_tty; + static FILE *tty; char *p; + if (setjmp(save)) + { + ok=0; + goto error; + } + + number=5; + ok=0; + ps=0; + is_a_tty=1; + tty=NULL; + #ifndef MSDOS if ((tty=fopen("/dev/tty","r")) == NULL) tty=stdin; @@ -267,11 +280,6 @@ int verify; return(-1); #endif - if (setjmp(save)) - { - ok=0; - goto error; - } pushsig(); ps=1; |