summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorXiaoyin Liu <xiaoyinl@users.noreply.github.com>2017-07-24 11:28:50 -0400
committerRich Salz <rsalz@openssl.org>2017-07-24 19:34:48 -0400
commit5bb84670ff1cf45e5d997eeaf48f34eab721d01f (patch)
tree1e6138034d99fe5888fd6864073c0c8cb4bbcb81 /apps
parent34ee5a19d827ae14a641413e579bbec0a6f546fd (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) (cherry picked from commit e0de4dd5a2b0c0dc27e6a6ab01fabe374d657d23)
Diffstat (limited to 'apps')
-rw-r--r--apps/speed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/speed.c b/apps/speed.c
index 5c0996b18f..5259c16f12 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -307,7 +307,8 @@ static SIGRETTYPE sig_done(int sig)
# if !defined(SIGALRM)
# define SIGALRM
# endif
-static unsigned int lapse, schlock;
+static volatile unsigned int lapse;
+static volatile unsigned int schlock;
static void alarm_win32(unsigned int secs)
{
lapse = secs * 1000;