Commit e0de4dd5 authored by Xiaoyin Liu's avatar Xiaoyin Liu Committed by Rich Salz
Browse files

schlock global variable needs to be volatile

parent 386e9169
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;