diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2007-09-13 22:30:52 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2007-09-13 22:30:52 +0000 |
commit | a791708fb461353bd122f59a6a889e1bca339a2b (patch) | |
tree | abcd42ef03bb0732df61adddaccff7db07ff571e /usr.bin | |
parent | 3454a69c9970cde59eaff98270a9b20a0a0fe163 (diff) |
Use a sig_atomic_t instead of an int when setting it from a signal handler
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 96bebaed5d5..7ddf7bd5ac0 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.104 2006/10/02 23:03:56 pedro Exp $ */ +/* $OpenBSD: vmstat.c,v 1.105 2007/09/13 22:30:51 cloder Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.104 2006/10/02 23:03:56 pedro Exp $"; +static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.105 2007/09/13 22:30:51 cloder Exp $"; #endif #endif /* not lint */ @@ -364,7 +364,8 @@ getuptime(void) return(uptime); } -int hz, hdrcnt; +int hz; +volatile sig_atomic_t hdrcnt; void dovmstat(u_int interval, int reps) |