diff options
author | Walter Harms <wharms@bfs.de> | 2019-01-15 19:45:29 +0100 |
---|---|---|
committer | Walter Harms <wharms@bfs.de> | 2019-01-15 19:45:29 +0100 |
commit | b724cd0d25dffe0091bb101ba8f993d0305844d3 (patch) | |
tree | 1e774d75dc582fbe17cad1cbb8636259a30353a2 /src/Converters.c | |
parent | 93713f5b050fb40973775e13d8430d524e2d4d10 (diff) |
resolv:assignment discards 'const' qualifier from pointer target
Diffstat (limited to 'src/Converters.c')
-rw-r--r-- | src/Converters.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Converters.c b/src/Converters.c index 8c8d8be..7020ca8 100644 --- a/src/Converters.c +++ b/src/Converters.c @@ -86,9 +86,9 @@ in this Software without prior written authorization from The Open Group. #define IsNewline(str) ((str) == '\n') #define IsWhitespace(str) ((str)== ' ' || (str) == '\t') -static const String XtNwrongParameters = "wrongParameters"; -static const String XtNconversionError = "conversionError"; -static const String XtNmissingCharsetList = "missingCharsetList"; +static _Xconst _XtString XtNwrongParameters = "wrongParameters"; +static _Xconst _XtString XtNconversionError = "conversionError"; +static _Xconst _XtString XtNmissingCharsetList = "missingCharsetList"; /* Representation types */ @@ -495,7 +495,9 @@ Boolean XtCvtStringToPixel( status = XAllocNamedColor(DisplayOfScreen(screen), colormap, (char*)str, &screenColor, &exactColor); if (status == 0) { - String msg, type; + _Xconst _XtString msg; + _Xconst _XtString type; + params[0] = str; /* Server returns a specific error code but Xlib discards it. Ugh */ if (XLookupColor(DisplayOfScreen(screen), colormap, (char*)str, |