svn commit: r193325 - head/sbin/fsck_ffs

Ulf Lilleengen lulf at FreeBSD.org
Tue Jun 2 17:57:26 UTC 2009


Author: lulf
Date: Tue Jun  2 17:57:24 2009
New Revision: 193325
URL: http://svn.freebsd.org/changeset/base/193325

Log:
  - Use volatile for signal variables.
  
  Suggested by:	Jaakko Heinonen <jh -at- saunalahti.fi>

Modified:
  head/sbin/fsck_ffs/fsck.h

Modified: head/sbin/fsck_ffs/fsck.h
==============================================================================
--- head/sbin/fsck_ffs/fsck.h	Tue Jun  2 17:54:45 2009	(r193324)
+++ head/sbin/fsck_ffs/fsck.h	Tue Jun  2 17:57:24 2009	(r193325)
@@ -297,8 +297,8 @@ int	lfmode;			/* lost & found directory 
 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) { \


More information about the svn-src-head mailing list