diff options
author | Xiaoyin Liu <xiaoyinl@users.noreply.github.com> | 2017-07-24 11:28:50 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-07-24 14:58:11 -0400 |
commit | e0de4dd5a2b0c0dc27e6a6ab01fabe374d657d23 (patch) | |
tree | b5e7c2b86f728fb0578f512a4e100663946aad9b /apps/speed.c | |
parent | 386e9169c35718436ba038dff93711d2db73fa6a (diff) |
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)
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/speed.c b/apps/speed.c index becdf6efcd..2d943b12e2 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -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; |