From 4bf092e35a92b4fb613f4fee01d5ab26a612ddb6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 28 Nov 2021 10:38:43 -0800 Subject: Use _CONST_X_STRING to make libXt declare String as const char * Clears 5 -Wincompatible-pointer-types warnings and 18 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith --- save.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'save.c') diff --git a/save.c b/save.c index fc6f4e0..1bbf448 100644 --- a/save.c +++ b/save.c @@ -620,7 +620,7 @@ SaveCancelXtProc(Widget w, XtPointer client_data, XtPointer callData) */ static Widget -AddToggle(char *widgetName, Widget parent, int state, Widget radioGroup, +AddToggle(String widgetName, Widget parent, int state, Widget radioGroup, XtPointer radioData, Widget fromHoriz, Widget fromVert) { Widget toggle; @@ -1195,7 +1195,7 @@ PopupBadSave(void) { ClientRec *client; char *progName, *hostname, *tmp1, *tmp2; - String clientInfo; + char *clientInfo; int maxlen1, maxlen2; char extraBuf1[80], extraBuf2[80]; char *restart_service_prop; @@ -1211,7 +1211,7 @@ PopupBadSave(void) */ for (i = 0; i < numFailedNames; i++) - XtFree (failedNames[i]); + XtFree ((char *) failedNames[i]); XtFree ((char *) failedNames); -- cgit v1.2.3