summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-12-01 08:40:13 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-12-01 08:40:13 +0000
commit51922bdefd8b25bf682cff853dffc951f9560f1e (patch)
tree0b7ef81b55ce2d40e9d6d4c40df35b6e846caf66 /usr.bin
parent1b60297569580c82927e4d3305424ae922a2accc (diff)
use volatile sig_atomic_t for vars set in signal handlers. spotted by deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dc/bcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c
index 1a0014c8d3e..ebec9f34361 100644
--- a/usr.bin/dc/bcode.c
+++ b/usr.bin/dc/bcode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcode.c,v 1.25 2004/12/01 08:29:38 otto Exp $ */
+/* $OpenBSD: bcode.c,v 1.26 2004/12/01 08:40:12 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: bcode.c,v 1.25 2004/12/01 08:29:38 otto Exp $";
+static const char rcsid[] = "$OpenBSD: bcode.c,v 1.26 2004/12/01 08:40:12 otto Exp $";
#endif /* not lint */
#include <ssl/ssl.h>
@@ -50,7 +50,7 @@ struct bmachine {
bool extended_regs;
size_t reg_array_size;
struct stack *reg;
- volatile bool interrupted;
+ volatile sig_atomic_t interrupted;
struct source readstack[RECURSION_STACK_SIZE];
};