diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 09:03:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 09:03:22 -0700 |
commit | af6b68669c26b5ca5ce8544f00b7f3a50adf9304 (patch) | |
tree | 8897dcb22a5f8f3dd8e4f581d35ac52f99c5af60 | |
parent | bbcb5f3df1b5d4628a8247d81718db6f1158c48a (diff) | |
download | txr-af6b68669c26b5ca5ce8544f00b7f3a50adf9304.tar.gz txr-af6b68669c26b5ca5ce8544f00b7f3a50adf9304.tar.bz2 txr-af6b68669c26b5ca5ce8544f00b7f3a50adf9304.zip |
* match.c (complex_open): Likewise.
* stream.c (w_opendir): Likewise.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | match.c | 2 | ||||
-rw-r--r-- | stream.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -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 @@ -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); @@ -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; |