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 /restart.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 'restart.c')
-rw-r--r-- | restart.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -145,7 +145,7 @@ Restart(int flag) List *cl, *pl, *vl; PendingClient *c; Prop *prop; - char *cwd; + const char *cwd; char *program; char **args; char **env; @@ -338,7 +338,7 @@ Restart(int flag) void Clone(ClientRec *client, Bool useSavedState) { - char *cwd; + const char *cwd; char *program; char **args; char **env; @@ -518,14 +518,15 @@ void StartDefaultApps (void) { FILE *f; - char *buf, *p, *home, filename[128]; + char *buf, *p, filename[128]; + const char *home; int buflen, len; /* * First try ~/.xsmstartup, then system.xsm */ - home = (char *) getenv ("HOME"); + home = getenv ("HOME"); if (!home) home = "."; snprintf (filename, sizeof(filename), "%s/.xsmstartup", home); |