summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-11-17 19:49:38 +0000
committerderaadt <deraadt@openbsd.org>2001-11-17 19:49:38 +0000
commitb49ab2346307f63ce49669d98ba58d0f2c6dd5f1 (patch)
tree8da6706650d1cceebc7ab5342ed08af44ca37de3 /usr.sbin/iostat
parentremove unused signal handler variable (diff)
downloadwireguard-openbsd-b49ab2346307f63ce49669d98ba58d0f2c6dd5f1.tar.xz
wireguard-openbsd-b49ab2346307f63ce49669d98ba58d0f2c6dd5f1.zip
use volatile sig_atomic_t where possible; simply volatile i other places
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index ec6f3c51732..4ea321db198 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.10 2001/11/14 20:04:40 deraadt Exp $ */
+/* $OpenBSD: iostat.c,v 1.11 2001/11/17 19:49:38 deraadt Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
@@ -103,7 +103,8 @@ char *nlistf, *memf;
int hz, reps, interval;
static int todo = 0;
-static int wantheader;
+
+volatile sig_atomic_t wantheader;
#define ISSET(x, a) ((x) & (a))
#define SHOW_CPU 0x0001