summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrws <empty>1990-06-15 18:38:43 +0000
committerrws <empty>1990-06-15 18:38:43 +0000
commitbb33e235ca851db0bc286bd86da6234c023561db (patch)
tree7f8149465712e04fdf69af6bb5d24f7ea4ad38cd
parent3c44530fa3d2b5deac654a338a262ccfa51fc7aa (diff)
make masks const
-rw-r--r--xc/lib/Xt/Event.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/xc/lib/Xt/Event.c b/xc/lib/Xt/Event.c
index b69e6f658..f28731ad6 100644
--- a/xc/lib/Xt/Event.c
+++ b/xc/lib/Xt/Event.c
@@ -1,7 +1,5 @@
-#ifndef lint
-static char Xrcsid[] = "$XConsortium: Event.c,v 1.113 90/04/04 11:27:50 swick Exp $";
+/* "$XConsortium: Event.c,v 1.114 90/04/13 19:50:31 swick Exp $"; */
/* $oHeader: Event.c,v 1.9 88/09/01 11:33:51 asente Exp $ */
-#endif /* lint */
/***********************************************************
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
@@ -31,6 +29,12 @@ SOFTWARE.
#include "Shell.h"
#include "StringDefs.h"
+#ifdef __STDC__
+#define Const const
+#else
+#define Const /**/
+#endif
+
/*
* These are definitions to make the code that handles exposure compresssion
* easier to read.
@@ -703,7 +707,7 @@ static void ConvertTypeToMask (eventType, mask, grabType)
GrabType *grabType;
{
-static struct {
+static Const struct {
EventMask mask;
GrabType grabType;
} masks[] = {