From af6b68669c26b5ca5ce8544f00b7f3a50adf9304 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 18 May 2012 09:03:22 -0700 Subject: * match.c (complex_open): Likewise. * stream.c (w_opendir): Likewise. --- ChangeLog | 4 ++++ match.c | 2 +- stream.c | 2 +- 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 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; -- cgit v1.2.3