From 3226a8894c9f90a96a776fe36456af2cc2d078c7 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 11 Dec 2012 14:28:06 +0000 Subject: kpathsea: Resolve some const related problems git-svn-id: svn://tug.org/texlive/trunk@28500 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/db.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/kpathsea/db.c') 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; -- cgit v1.2.3