summaryrefslogtreecommitdiff
path: root/xc/lib/Xmu/CursorName.c
diff options
context:
space:
mode:
authorconverse <empty>1990-12-19 18:17:14 +0000
committerconverse <empty>1990-12-19 18:17:14 +0000
commitfffc7e3f0d3d4e94bb2b1cfa38ce6ee766e38d57 (patch)
treef251e30618aea7c548c7ce5c0a1ae4dfca5179f1 /xc/lib/Xmu/CursorName.c
parentb1c2d00f7d177bcf10e467d496d63df353b8b1fa (diff)
repairs to prototype for unchanged string parameter in XmuCursorNameToIndex
and in _CursorName data structure
Diffstat (limited to 'xc/lib/Xmu/CursorName.c')
-rw-r--r--xc/lib/Xmu/CursorName.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/xc/lib/Xmu/CursorName.c b/xc/lib/Xmu/CursorName.c
index f8d81520f..ea49066e2 100644
--- a/xc/lib/Xmu/CursorName.c
+++ b/xc/lib/Xmu/CursorName.c
@@ -1,5 +1,5 @@
/*
- * $XConsortium: CursorName.c,v 1.4 90/06/15 18:58:23 rws Exp $
+ * $XConsortium: CursorName.c,v 1.5 90/12/11 13:19:03 rws Exp $
*
* Copyright 1989 Massachusetts Institute of Technology
*
@@ -26,17 +26,15 @@
#include <X11/Xmu/CurUtil.h>
#include <X11/cursorfont.h>
-#if __STDC__
-#define Const const
+#if NeedFunctionPrototypes
+int XmuCursorNameToIndex (_Xconst char *name)
#else
-#define Const /**/
-#endif
-
int XmuCursorNameToIndex (name)
char *name;
+#endif
{
- static Const struct _CursorName {
- Const char *name;
+ static _Xconst struct _CursorName {
+ _Xconst char *name;
unsigned int shape;
} cursor_names[] = {
{"x_cursor", XC_X_cursor},
@@ -117,7 +115,7 @@ int XmuCursorNameToIndex (name)
{"watch", XC_watch},
{"xterm", XC_xterm},
};
- register Const struct _CursorName *table;
+ register _Xconst struct _CursorName *table;
register int i;
char tmp[40];