summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-02 11:35:43 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-02 11:35:43 -0700
commit43c19175385f98894c1633ed57ec6778e17a38a6 (patch)
tree106eae499b079accde836a99283f4f8e86daf9f7 /utils.c
parent2b838dbd23f2ae2a3ff479003b13e03563624009 (diff)
Clear 208 out of 210 -Wdiscarded-qualifiers warnings from gcc 7.3
Depends on building with a libXt version that defines String as a const char * if _CONST_X_STRING is defined. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index de046d2..19a3474 100644
--- a/utils.c
+++ b/utils.c
@@ -56,7 +56,7 @@ static void FreeResources ( WidgetResources * resources );
*/
void
-SetMessage(Widget w, char *str)
+SetMessage(Widget w, String str)
{
Arg args[1];
@@ -132,7 +132,7 @@ GetAllStrings(char *in, char sep, char ***out, int *num)
*/
void
-AddString(char ** str, char *add)
+AddString(char ** str, const char *add)
{
int len_str, len_add;
char * ptr;
@@ -745,7 +745,7 @@ CheckDatabase(XrmDatabase db, XrmQuarkList names, XrmQuarkList classes)
*/
XrmQuarkList
-Quarkify(char **list, char *ptr)
+Quarkify(char **list, const char *ptr)
{
int i;
char ** tlist;
@@ -853,7 +853,7 @@ ProtocolFailure(ProtocolStream *stream)
{
char buf[BUFSIZ];
unsigned char version;
- char* old_version_string;
+ const char* old_version_string;
if (!_XEditResGet8(stream, &version))
return(XtNewString(res_labels[35]));