summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 20:52:25 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 20:52:25 +0000
commitfd2075fc6d32c06c6010f0396029ef5bfe065883 (patch)
treeb9213e32fce0f4aff6adaf8bbb05dfa82657a5ab
parent7ca546f0d8e9aec988c2469dec93804ac9ece28b (diff)
Mark variables modified in signal handlers as volatile (part of Sun bug idXORG-6_8_99_16
-rw-r--r--di/dispatch.c4
-rw-r--r--include/misc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/di/dispatch.c b/di/dispatch.c
index 53ac5ca..a5705cc 100644
--- a/di/dispatch.c
+++ b/di/dispatch.c
@@ -47,8 +47,8 @@ HandleLargeRequest(
int nextFreeClientID; /* always MIN free client ID */
int nClients; /* number active clients */
char *display_name = 0;
-char dispatchException = 0;
-char isItTimeToYield;
+volatile char dispatchException = 0;
+volatile char isItTimeToYield;
Bool lbxUseLbx = TRUE;
Bool lbxCompressImages = TRUE;
Bool lbxDoAtomShortCircuiting = TRUE;
diff --git a/include/misc.h b/include/misc.h
index b6123ac..3ead872 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -60,8 +60,8 @@ typedef struct _XServer *XServerPtr;
extern int nextFreeClientID;
extern int nClients;
extern char *display_name;
-extern char dispatchException;
-extern char isItTimeToYield;
+extern volatile char dispatchException;
+extern volatile char isItTimeToYield;
extern int MaxClients;
/* The following byte swapping tools are duplicated in several places.