summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-01-18 19:13:00 +0000
committerKarl Berry <karl@freefriends.org>2008-01-18 19:13:00 +0000
commit86ef1002b41b8dca25b393c06f3064cbb9ba729c (patch)
tree9c3d1c4056d51fe1e653e3ba38de7e72a3e0792f
parent3ca1b770ec18b461a4c0786cfddda12fc5d889e0 (diff)
silence a couple warnings, from Martin
git-svn-id: svn://tug.org/texlive/trunk@6304 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/kpsewhich.c2
-rw-r--r--Build/source/texk/kpathsea/pathsearch.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 942b0069bfe..4abb8913090 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-18 Karl Berry <karl@tug.org>
+
+ * kpsewhich.c (subdir_match): XRETALLOC is a statement not a function.
+ * pathsearch.c (search_list): remove unused variable uniq_list.
+
2008-01-16 Karl Berry <karl@tug.org>
* absolute.c through config.h: replace FSF physical address with url.
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c
index 98f5c51b002..27c7d2a510f 100644
--- a/Build/source/texk/kpathsea/kpsewhich.c
+++ b/Build/source/texk/kpathsea/kpsewhich.c
@@ -202,7 +202,7 @@ subdir_match P2C(str_list_type, subdirs, string *, matches)
}
if (FILESTRCASEEQ (subdir, s + loc - subdir_len)) {
/* matched, save this one. */
- ret = XRETALLOC (ret, len + 1, string);
+ XRETALLOC (ret, len + 1, string);
ret[len-1] = matches[m];
len++;
}
diff --git a/Build/source/texk/kpathsea/pathsearch.c b/Build/source/texk/kpathsea/pathsearch.c
index 2234ed7cb29..12e526c1a8b 100644
--- a/Build/source/texk/kpathsea/pathsearch.c
+++ b/Build/source/texk/kpathsea/pathsearch.c
@@ -399,7 +399,7 @@ static string *
search_list P4C(const_string, path, const_string*, names,
boolean, must_exist, boolean, all)
{
- str_list_type ret_list, uniq_list;
+ str_list_type ret_list;
const_string* namep;
string elt;
boolean done = false;