summaryrefslogtreecommitdiff
path: root/src/TMprint.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-03-19 21:20:03 -0400
committerThomas E. Dickey <dickey@his.com>2019-04-16 19:39:55 +0000
commit13ed4421006c3bc7743233a401ce80f849dd889b (patch)
tree9ca90cd942cb7f1c08be8ea5ebbbb32865c5c48b /src/TMprint.c
parentd10e295117fdde9a085f12d90cab1adb978450bb (diff)
This is a minimal change which compiles when predefining _CONST_X_STRING,
by changing some function parameters and struct-members to _XtString (always "char*") from String (which may be "const char *"). There are still many compiler warnings; subsequent commits will reduce those. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/TMprint.c')
-rw-r--r--src/TMprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/TMprint.c b/src/TMprint.c
index 95cda25..2d5613e 100644
--- a/src/TMprint.c
+++ b/src/TMprint.c
@@ -76,8 +76,8 @@ in this Software without prior written authorization from The Open Group.
#include <stdio.h>
typedef struct _TMStringBufRec{
- String start;
- String current;
+ _XtString start;
+ _XtString current;
Cardinal max;
}TMStringBufRec, *TMStringBuf;
@@ -237,7 +237,7 @@ static void PrintAtom(
Display *dpy,
Atom atom)
{
- String atomName;
+ _XtString atomName;
if (atom == 0) return;