Date: Sun, 14 Jun 2009 21:39:53 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194217 - in head: usr.bin/make usr.sbin/mount_portalfs usr.sbin/ngctl Message-ID: <200906142139.n5ELdr3N061830@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Sun Jun 14 21:39:52 2009 New Revision: 194217 URL: http://svn.freebsd.org/changeset/base/194217 Log: Add volatile to sig_atomic_t where it was missing. MFC after: 1 week Modified: head/usr.bin/make/job.c head/usr.sbin/mount_portalfs/mount_portalfs.c head/usr.sbin/ngctl/main.c Modified: head/usr.bin/make/job.c ============================================================================== --- head/usr.bin/make/job.c Sun Jun 14 21:16:23 2009 (r194216) +++ head/usr.bin/make/job.c Sun Jun 14 21:39:52 2009 (r194217) @@ -342,7 +342,7 @@ static int fifoFd; /* Fd of our job fif 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) Modified: head/usr.sbin/mount_portalfs/mount_portalfs.c ============================================================================== --- head/usr.sbin/mount_portalfs/mount_portalfs.c Sun Jun 14 21:16:23 2009 (r194216) +++ head/usr.sbin/mount_portalfs/mount_portalfs.c Sun Jun 14 21:39:52 2009 (r194217) @@ -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) { Modified: head/usr.sbin/ngctl/main.c ============================================================================== --- head/usr.sbin/ngctl/main.c Sun Jun 14 21:16:23 2009 (r194216) +++ head/usr.sbin/ngctl/main.c Sun Jun 14 21:39:52 2009 (r194217) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906142139.n5ELdr3N061830>