Add volatile to sig_atomic_t where it was missing.
MFC after: 1 week
This commit is contained in:
parent
b696d9ac2e
commit
c540146463
@ -342,7 +342,7 @@ static int fifoFd; /* Fd of our job fifo */
|
||||
static char fifoName[] = "/tmp/make_fifo_XXXXXXXXX";
|
||||
static int fifoMaster;
|
||||
|
||||
static sig_atomic_t interrupted;
|
||||
static volatile sig_atomic_t interrupted;
|
||||
|
||||
|
||||
#if defined(USE_PGRP) && defined(SYSV)
|
||||
|
@ -70,7 +70,7 @@ struct mntopt mopts[] = {
|
||||
|
||||
static void usage(void) __dead2;
|
||||
|
||||
static sig_atomic_t readcf; /* Set when SIGHUP received */
|
||||
static volatile sig_atomic_t readcf; /* Set when SIGHUP received */
|
||||
|
||||
static void sighup(int sig __unused)
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ static int ReadCmd(int ac, char **av);
|
||||
static int HelpCmd(int ac, char **av);
|
||||
static int QuitCmd(int ac, char **av);
|
||||
#ifdef EDITLINE
|
||||
static sig_atomic_t unblock;
|
||||
static volatile sig_atomic_t unblock;
|
||||
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user