diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-19 11:29:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-19 11:29:07 -0800 |
commit | 24d38c420d5d60c988f07dd25f7fa81171dac64f (patch) | |
tree | 47d34022ccbff9515e85ed47cf34794c19454df2 /xsm.c | |
parent | e17c2f59266528dce1cfb71798dc6075b74839a3 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |