Add volatile to sig_atomic_t where it was missing.

MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2009-06-14 21:39:52 +00:00
parent b696d9ac2e
commit c540146463
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)
{

View File

@ -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