projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ee5a1
)
schlock global variable needs to be volatile
author
Xiaoyin Liu
<xiaoyinl@users.noreply.github.com>
Mon, 24 Jul 2017 15:28:50 +0000
(11:28 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Mon, 24 Jul 2017 23:34:48 +0000
(19:34 -0400)
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
)
apps/speed.c
patch
|
blob
|
history
diff --git
a/apps/speed.c
b/apps/speed.c
index 5c0996b18fc347b70a150f5ec42ebb51a7c3dab5..5259c16f1218a387513faabeb85263b44e99e164 100644
(file)
--- 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;