summaryrefslogtreecommitdiff
path: root/info.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 10:38:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:52:59 +0000
commit4bf092e35a92b4fb613f4fee01d5ab26a612ddb6 (patch)
tree093d2ef94b6f58d58de8191784aca276540526dc /info.c
parentc7a7f81b18f8594aceaa9c32217753ef935dac2d (diff)
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'info.c')
-rw-r--r--info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/info.c b/info.c
index 9de747a..56f830e 100644
--- a/info.c
+++ b/info.c
@@ -382,7 +382,7 @@ UpdateClientList(void)
{
ClientRec *client;
char *progName, *hostname, *tmp1, *tmp2;
- String clientInfo;
+ char *clientInfo;
int maxlen1, maxlen2;
char extraBuf1[80], extraBuf2[80];
char *restart_service_prop;
@@ -398,7 +398,7 @@ UpdateClientList(void)
*/
for (i = 0; i < numClientListNames; i++)
- XtFree (clientListNames[i]);
+ XtFree ((char *) clientListNames[i]);
XtFree ((char *) clientListNames);