summaryrefslogtreecommitdiff
path: root/xsm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:03 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:07 -0800
commit24d38c420d5d60c988f07dd25f7fa81171dac64f (patch)
tree47d34022ccbff9515e85ed47cf34794c19454df2 /xsm.c
parente17c2f59266528dce1cfb71798dc6075b74839a3 (diff)
Fix some gcc -Wwrite-strings warnings
Many are unfixable at the moment due to the libXt API Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xsm.c')
-rw-r--r--xsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsm.c b/xsm.c
index 4de4075..18e54fc 100644
--- a/xsm.c
+++ b/xsm.c
@@ -399,7 +399,7 @@ PropertyChangeXtHandler(Widget w, XtPointer closure, XEvent *event,
void
-SetWM_DELETE_WINDOW(Widget widget, String delAction)
+SetWM_DELETE_WINDOW(Widget widget, const _XtString delAction)
{
char translation[64];
@@ -1190,7 +1190,7 @@ NewClientProc(SmsConn smsConn, SmPointer managerData, unsigned long *maskRet,
if (!newClient)
{
- char *str = "Memory allocation failed";
+ const char *str = "Memory allocation failed";
if ((*failureReasonRet = (char *) XtMalloc (strlen (str) + 1)) != NULL)
strcpy (*failureReasonRet, str);