summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--match.c2
-rw-r--r--stream.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d691717..795d80b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
* utf8.c (w_fopen, w_popen): Removing unnecessary casts of
return values of ut8_dup_to.
+ * match.c (complex_open): Likewise.
+
+ * stream.c (w_opendir): Likewise.
+
2012-05-18 Kaz Kylheku <kaz@kylheku.com>
Implementing new pipe function to get around the limitation
diff --git a/match.c b/match.c
index 9964bd83..b7baa6b6 100644
--- a/match.c
+++ b/match.c
@@ -1489,7 +1489,7 @@ static fpip_t complex_open(val name, val output, val append)
char *name;
if (output)
return ret;
- name = (char *) utf8_dup_to(namestr+1);
+ name = utf8_dup_to(namestr+1);
ret.close = fpip_closedir;
ret.d = opendir(name);
free(name);
diff --git a/stream.c b/stream.c
index 574c170e..08ad823c 100644
--- a/stream.c
+++ b/stream.c
@@ -1470,7 +1470,7 @@ val flush_stream(val stream)
static DIR *w_opendir(const wchar_t *wname)
{
- char *name = (char *) utf8_dup_to(wname);
+ char *name = utf8_dup_to(wname);
DIR *d = opendir(name);
free(name);
return d;