diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-13 11:20:26 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-13 11:20:26 +0000 |
commit | 98b38818d5618fce1e1cf6e95a924e206249eb42 (patch) | |
tree | fe9f1689584277105855987d376ca8692490bfdb /Build/source/texk/kpathsea/db.c | |
parent | 98b3e920b0a94a24517b8ccede04d1a9a3cc9c3f (diff) |
kpathsea: Resolve remaining const related problems
web2c, ptexenc: Adapt
git-svn-id: svn://tug.org/texlive/trunk@28521 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/db.c')
-rw-r--r-- | Build/source/texk/kpathsea/db.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/db.c b/Build/source/texk/kpathsea/db.c index 1b79a646a51..41aeb80835a 100644 --- a/Build/source/texk/kpathsea/db.c +++ b/Build/source/texk/kpathsea/db.c @@ -43,11 +43,16 @@ #define DB_NAME_LC "ls-r" #endif +static char db_name[] = DB_NAME; +#ifndef WIN32 +static char db_name_lc[] = DB_NAME_LC; +#endif + /* read ls-R only on WIN32 */ -static const_string db_names[] = { - DB_NAME, +static string db_names[] = { + db_name, #ifndef WIN32 - DB_NAME_LC, + db_name_lc, #endif NULL }; @@ -583,7 +588,7 @@ kpathsea_db_search (kpathsea kpse, const_string name, } str_list_type * -kpathsea_db_search_list (kpathsea kpse, const_string* names, +kpathsea_db_search_list (kpathsea kpse, string* names, const_string path_elt, boolean all) { const_string *db_dirs, *orig_dirs; |