From 1064bad5f2e2a590c1bb7772d94097997ee65ad1 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 1 Jul 2019 20:16:46 -0400 Subject: build-fixes when _CONST_X_STRING is defined Signed-off-by: Thomas E. Dickey --- src/AsciiSrc.c | 6 +++--- src/MultiSrc.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c index 0581040..c3d73fa 100644 --- a/src/AsciiSrc.c +++ b/src/AsciiSrc.c @@ -111,7 +111,7 @@ static void Initialize(Widget, Widget, ArgList, Cardinal *); static void Destroy(Widget); static void GetValuesHook(Widget, ArgList, Cardinal *); static String MyStrncpy(char *, char *, int); -static String StorePiecesInString(AsciiSrcObject); +static char * StorePiecesInString(AsciiSrcObject); static Boolean SetValues(Widget, Widget, Widget, ArgList, Cardinal *); static Boolean WriteToFile(_Xconst _XtString, _Xconst _XtString); @@ -927,10 +927,10 @@ WriteToFile(_Xconst _XtString string, _Xconst _XtString name) * Returns: none. */ -static String +static char * StorePiecesInString(AsciiSrcObject src) { - String string; + char * string; XawTextPosition first; Piece * piece; diff --git a/src/MultiSrc.c b/src/MultiSrc.c index a1b2035..86703ae 100644 --- a/src/MultiSrc.c +++ b/src/MultiSrc.c @@ -137,8 +137,6 @@ static Boolean WriteToFile(String, String); static void (MyWStrncpy)(); #endif -extern char *tmpnam(String); - extern wchar_t* _XawTextMBToWC(Display *, char *, int *); extern char *_XawTextWCToMB(Display *, wchar_t *, int *); -- cgit v1.2.3