Skip to content

Commit

Permalink
programs: testcases: use volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
rouseabout committed Jan 3, 2025
1 parent 5363bcd commit c801b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/testcases.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ static void * thread_func(void * v)
return (void *)0xc0de;
}

static int signal_fired = 0;
static volatile int signal_fired = 0;
static void alarm_handler(int sig)
{
signal_fired = 1;
}

static int trap_fired = 0;
static volatile int trap_fired = 0;
static void trap_handler(int sig)
{
trap_fired = 1;
Expand Down

0 comments on commit c801b7a

Please sign in to comment.