summaryrefslogtreecommitdiff
path: root/src/Initialize.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 19:32:08 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 19:52:17 -0700
commitaf9e4b75167c0e31ec02d5ababf204daa12f500d (patch)
treeb3ef2f84b7e6ba40972be703061569e0aae9c943 /src/Initialize.c
parent682ca8daf29285ef5013751784a7ec98962b7cbb (diff)
Add const attributes to slashDotXdefaults to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Initialize.c')
-rw-r--r--src/Initialize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Initialize.c b/src/Initialize.c
index e9543da..9783deb 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -417,9 +417,9 @@ static void CombineUserDefaults(
XrmDatabase *pdb)
{
#ifdef __MINGW32__
- char *slashDotXdefaults = "/Xdefaults";
+ const char *slashDotXdefaults = "/Xdefaults";
#else
- char *slashDotXdefaults = "/.Xdefaults";
+ const char *slashDotXdefaults = "/.Xdefaults";
#endif
char *dpy_defaults = XResourceManagerString(dpy);
@@ -559,9 +559,9 @@ XrmDatabase XtScreenDatabase(
if (!(filename = getenv("XENVIRONMENT"))) {
int len;
#ifdef __MINGW32__
- char *slashDotXdefaultsDash = "/Xdefaults-";
+ const char *slashDotXdefaultsDash = "/Xdefaults-";
#else
- char *slashDotXdefaultsDash = "/.Xdefaults-";
+ const char *slashDotXdefaultsDash = "/.Xdefaults-";
#endif
(void) GetRootDirName(filename = filenamebuf,