diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 19:30:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 19:52:17 -0700 |
commit | 682ca8daf29285ef5013751784a7ec98962b7cbb (patch) | |
tree | dfc17240f03588eed412c8ef5bd6c4aebcf5c62b /src | |
parent | d3c2fbcd83ed9ae9b6cc8d765badca7f8d3261b2 (diff) |
Make implementation_default_path return const char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Intrinsic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Intrinsic.c b/src/Intrinsic.c index 684bda2..3df0358 100644 --- a/src/Intrinsic.c +++ b/src/Intrinsic.c @@ -1321,7 +1321,7 @@ static void FillInLangSubs( * The exact value should be documented in the implementation * notes for any Xt implementation. */ -static char *implementation_default_path(void) +static const char *implementation_default_path(void) { #if defined(WIN32) static char xfilesearchpath[] = ""; @@ -1368,8 +1368,8 @@ String XtResolvePathname( XtFilePredicate predicate) { XtPerDisplay pd; - static char *defaultPath = NULL; - char *impl_default = implementation_default_path(); + static const char *defaultPath = NULL; + const char *impl_default = implementation_default_path(); int idef_len = strlen(impl_default); char *massagedPath; int bytesAllocd, bytesLeft; |