diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 19:39:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 19:39:07 -0700 |
commit | e18a25f27313d90ec8da4057b8413b6937bee1c2 (patch) | |
tree | 74d3698f3abdabf152f0aa64eef8eb303faa3a06 /Mailbox.c | |
parent | 2c0ba1ba92fdf393f30ffab0667cf507ecae09b0 (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears up 20 of 35 gcc -Wdiscarded-qualifiers warnings from gcc 7.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Mailbox.c')
-rw-r--r-- | Mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -541,10 +541,10 @@ static void GetMailFile (MailboxWidget w) } #endif if ((mailpath = getenv("MAIL"))) { - w->mailbox.filename = (String) XtMalloc (strlen (mailpath) + 1); + w->mailbox.filename = XtMalloc (strlen (mailpath) + 1); strcpy (w->mailbox.filename, mailpath); } else { - w->mailbox.filename = (String) XtMalloc (strlen (MAILBOX_DIRECTORY) + 1 + w->mailbox.filename = XtMalloc (strlen (MAILBOX_DIRECTORY) + 1 + strlen (username) + 1); strcpy (w->mailbox.filename, MAILBOX_DIRECTORY); strcat (w->mailbox.filename, "/"); |