mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
schlock global variable needs to be volatile
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4000)
This commit is contained in:
parent
386e9169c3
commit
e0de4dd5a2
@ -275,7 +275,8 @@ static SIGRETTYPE sig_done(int sig)
|
||||
# if !defined(SIGALRM)
|
||||
# define SIGALRM
|
||||
# endif
|
||||
static unsigned int lapse, schlock;
|
||||
static unsigned int lapse;
|
||||
static volatile unsigned int schlock;
|
||||
static void alarm_win32(unsigned int secs)
|
||||
{
|
||||
lapse = secs * 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user