From 12453fdf4f537f30c14a82fa93b74dd48d24775b Mon Sep 17 00:00:00 2001 From: lulf Date: Tue, 2 Jun 2009 17:57:24 +0000 Subject: - Use volatile for signal variables. Suggested by: Jaakko Heinonen --- sbin/fsck_ffs/fsck.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') 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) { \ -- cgit v1.1