diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:57:15 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:57:15 -0700 |
commit | ee3e046dfd84cda1588eef155c7e7c36df9bf5f4 (patch) | |
tree | a01da219178935fef20c9b34bfee37bd37bfb345 /parsedpy.c | |
parent | 7f7f8cd60795c9503156950d518caa04b30a94a2 (diff) | |
download | xorg-app-xauth-ee3e046dfd84cda1588eef155c7e7c36df9bf5f4.tar.gz |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parsedpy.c')
-rw-r--r-- | parsedpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,7 +55,7 @@ in this Software without prior written authorization from The Open Group. */ char * -copystring (char *src, int len) +copystring (const char *src, int len) { char *cp; @@ -92,7 +92,7 @@ copyhostname (void) * parse_displayname - display a display string up into its component parts */ Bool -parse_displayname (char *displayname, +parse_displayname (const char *displayname, int *familyp, /* return */ char **hostp, /* return */ int *dpynump, /* return */ |