summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-07-15 07:28:33 +0000
committerotto <otto@openbsd.org>2005-07-15 07:28:33 +0000
commitca8ee3df09d394d182367638c552710f0b746ef8 (patch)
tree7b5442729c656e08d28d3da50e1e32f63dc4b7e6
parentshrink read buffer size from 64k to 4k, this is not bgpd and we're dealing (diff)
downloadwireguard-openbsd-ca8ee3df09d394d182367638c552710f0b746ef8.tar.xz
wireguard-openbsd-ca8ee3df09d394d182367638c552710f0b746ef8.zip
Make globals accessed from sig handler volatile. From millert@
-rw-r--r--regress/sys/kern/signal/fpsig/fpsig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sys/kern/signal/fpsig/fpsig.c b/regress/sys/kern/signal/fpsig/fpsig.c
index 85560340d95..ae4e368e0d8 100644
--- a/regress/sys/kern/signal/fpsig/fpsig.c
+++ b/regress/sys/kern/signal/fpsig/fpsig.c
@@ -1,11 +1,11 @@
-/* $OpenBSD: fpsig.c,v 1.1 2005/07/13 14:53:54 otto Exp $ */
+/* $OpenBSD: fpsig.c,v 1.2 2005/07/15 07:28:33 otto Exp $ */
/*
* Public domain. 2005, Otto Moerbeek
*
* Try to check if fp registers are properly saved and restored while
* calling a signal hander. This is not supposed to catch all that
- * can go wrong, but trashed fp regsiters will typically get caught.
+ * can go wrong, but trashed fp registers will typically get caught.
*/
#include <err.h>
@@ -16,8 +16,8 @@
volatile sig_atomic_t count;
-double g1;
-double g2;
+volatile double g1;
+volatile double g2;
void
handler(int signo)