summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2004-11-29 09:32:47 +0000
committerjsg <jsg@openbsd.org>2004-11-29 09:32:47 +0000
commitc48e110ca300257b6aa9dfdb9722b9f8eec9e5b3 (patch)
tree3309310cb20bf4497024a4b0f55f59302c4972ef
parentansi. ok deraadt@ (diff)
downloadwireguard-openbsd-c48e110ca300257b6aa9dfdb9722b9f8eec9e5b3.tar.xz
wireguard-openbsd-c48e110ca300257b6aa9dfdb9722b9f8eec9e5b3.zip
Use volatile sig_atomic_t rather than int for sigtermed, from pjanzen@
ok miod@, otto@
-rw-r--r--games/grdc/grdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index 8cf7f825e24..a479c6bfb3c 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grdc.c,v 1.13 2004/11/29 08:52:28 jsg Exp $ */
+/* $OpenBSD: grdc.c,v 1.14 2004/11/29 09:32:47 jsg Exp $ */
/*
*
* Copyright 2002 Amos Shapir. Public domain.
@@ -35,7 +35,7 @@ short disp[11] = {
long old[6], next[6], new[6], mask;
char scrol;
-int sigtermed=0;
+volatile sig_atomic_t sigtermed = 0;
int hascolor = 0;