diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-11 14:28:06 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-11 14:28:06 +0000 |
commit | 3226a8894c9f90a96a776fe36456af2cc2d078c7 (patch) | |
tree | 5d1387ede5191c9dc0ca5a1b113642cc04c48d32 /Build/source/texk/kpathsea/db.c | |
parent | fc101b568d7547030fceb58ab5f097d457d49c57 (diff) |
kpathsea: Resolve some const related problems
git-svn-id: svn://tug.org/texlive/trunk@28500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/db.c')
-rw-r--r-- | Build/source/texk/kpathsea/db.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/db.c b/Build/source/texk/kpathsea/db.c index 76f7763d790..843a1a27b8f 100644 --- a/Build/source/texk/kpathsea/db.c +++ b/Build/source/texk/kpathsea/db.c @@ -435,7 +435,7 @@ str_list_type * kpathsea_db_search (kpathsea kpse, const_string name, const_string orig_path_elt, boolean all) { - string *db_dirs, *orig_dirs; + const_string *db_dirs, *orig_dirs; const_string last_slash, path_elt; string temp_str = NULL; boolean done; @@ -480,7 +480,7 @@ kpathsea_db_search (kpathsea kpse, const_string name, /* If we have aliases for this name, use them. */ if (kpse->alias_db.buckets) - aliases = (const_string *) hash_lookup (kpse->alias_db, name); + aliases = hash_lookup (kpse->alias_db, name); else aliases = NULL; @@ -586,7 +586,7 @@ str_list_type * kpathsea_db_search_list (kpathsea kpse, const_string* names, const_string path_elt, boolean all) { - string *db_dirs, *orig_dirs; + const_string *db_dirs, *orig_dirs; const_string last_slash, name, path; string temp_str = NULL; boolean done; @@ -645,7 +645,7 @@ kpathsea_db_search_list (kpathsea kpse, const_string* names, /* If we have aliases for this name, use them. */ if (kpse->alias_db.buckets) - aliases = (const_string *) hash_lookup (kpse->alias_db, name); + aliases = hash_lookup (kpse->alias_db, name); else aliases = NULL; |