summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-06-02 17:57:24 +0000
committerlulf <lulf@FreeBSD.org>2009-06-02 17:57:24 +0000
commit12453fdf4f537f30c14a82fa93b74dd48d24775b (patch)
tree26b39bcfc3a03133709f64c8a54636da83617d40 /sbin/fsck_ffs
parent046d65d30504ea1890b7c7ba1718b8a2eb3b48cc (diff)
downloadFreeBSD-src-12453fdf4f537f30c14a82fa93b74dd48d24775b.zip
FreeBSD-src-12453fdf4f537f30c14a82fa93b74dd48d24775b.tar.gz
- Use volatile for signal variables.
Suggested by: Jaakko Heinonen <jh -at- saunalahti.fi>
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/fsck.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index cd16462..ad7fe13 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -297,8 +297,8 @@ int lfmode; /* lost & found directory creation mode */
ufs2_daddr_t n_blks; /* number of blocks in use */
ino_t n_files; /* number of files in use */
-sig_atomic_t got_siginfo; /* received a SIGINFO */
-sig_atomic_t got_sigalarm; /* received a SIGALRM */
+volatile sig_atomic_t got_siginfo; /* received a SIGINFO */
+volatile sig_atomic_t got_sigalarm; /* received a SIGALRM */
#define clearinode(dp) \
if (sblock.fs_magic == FS_UFS1_MAGIC) { \
OpenPOWER on IntegriCloud