diff options
author | bde <bde@FreeBSD.org> | 1997-03-22 08:03:51 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-22 08:03:51 +0000 |
commit | 60e14681284303aa19c383bd113f78d75db543e8 (patch) | |
tree | c345eb5285f5bdf8c5e18f1840eace99d6cf9b02 /sys/ufs | |
parent | 0bc178170104cff1e818e849d08a50c6a4ee0851 (diff) | |
download | FreeBSD-src-60e14681284303aa19c383bd113f78d75db543e8.zip FreeBSD-src-60e14681284303aa19c383bd113f78d75db543e8.tar.gz |
Removed `volatile' from declaration of `time', and removed the resulting
null casts. `time' is nonvolatile for accesses within a region locked
by splclock()/splx(). Accesses outside such a region are invalid, and
splx() must have the side effect of potentially changing all global
variables (since there are hundreds of sort of volatile variables like
`time'), so declaring `time' as volatile didn't have any real benefits.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/lfs/lfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/lfs/lfs_syscalls.c b/sys/ufs/lfs/lfs_syscalls.c index 273ddb4..feb484b 100644 --- a/sys/ufs/lfs/lfs_syscalls.c +++ b/sys/ufs/lfs/lfs_syscalls.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)lfs_syscalls.c 8.5 (Berkeley) 4/20/94 - * $Id$ + * $Id: lfs_syscalls.c,v 1.17 1997/02/22 09:47:24 peter Exp $ */ #include <sys/param.h> @@ -432,7 +432,7 @@ lfs_segwait(p, uap, retval) if (itimerfix(&atv)) return (EINVAL); s = splclock(); - timevaladd(&atv, (struct timeval *)&time); + timevaladd(&atv, &time); timeout = hzto(&atv); splx(s); } else |