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.h | |
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.h')
-rw-r--r-- | xsm.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -195,14 +195,14 @@ extern XtSignalId sig_term_id, sig_usr1_id; extern void fprintfhex(FILE *fp, unsigned int len, char *cp); extern Status StartSession(char *name, Bool use_default); extern void EndSession(int status); -extern void SetWM_DELETE_WINDOW(Widget widget, String delAction); +extern void SetWM_DELETE_WINDOW(Widget widget, const _XtString delAction); extern void SetAllSensitive(Bool on); extern void FreeClient(ClientRec *client, Bool freeProps); extern void CloseDownClient(ClientRec *client); /* misc.c */ -extern int strbw(char *a, char *b); +extern int strbw(const char *a, const char *b); extern void nomem(void); @@ -219,10 +219,12 @@ extern int System(char *s); #endif /* remote.c */ -extern void remote_start(char *restart_protocol, char *restart_machine, - char *program, char **args, char *cwd, char **env, - char *non_local_display_env, - char *non_local_session_env ); +extern void remote_start(const char *restart_protocol, + const char *restart_machine, + const char *program, char **args, + const char *cwd, char **env, + const char *non_local_display_env, + const char *non_local_session_env ); /* signals.c */ extern void sig_child_handler(int sig); |