diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 09:01:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 09:01:21 -0700 |
commit | bbcb5f3df1b5d4628a8247d81718db6f1158c48a (patch) | |
tree | beddd8900b2380d866202654f0da6a0538acfc3a /utf8.c | |
parent | f92a6b5a3b9c10d0de19b29a99086a4f033710e5 (diff) | |
download | txr-bbcb5f3df1b5d4628a8247d81718db6f1158c48a.tar.gz txr-bbcb5f3df1b5d4628a8247d81718db6f1158c48a.tar.bz2 txr-bbcb5f3df1b5d4628a8247d81718db6f1158c48a.zip |
* utf8.c (w_fopen, w_popen): Removing unnecessary casts of
return values of ut8_dup_to.
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -354,8 +354,8 @@ wint_t utf8_decode(utf8_decoder_t *ud, int (*get)(mem_t *ctx), mem_t *ctx) FILE *w_fopen(const wchar_t *wname, const wchar_t *wmode) { - char *name = (char *) utf8_dup_to(wname); - char *mode = (char *) utf8_dup_to(wmode); + char *name = utf8_dup_to(wname); + char *mode = utf8_dup_to(wmode); FILE *f = fopen(name, mode); free(name); free(mode); @@ -364,8 +364,8 @@ FILE *w_fopen(const wchar_t *wname, const wchar_t *wmode) FILE *w_popen(const wchar_t *wcmd, const wchar_t *wmode) { - char *cmd = (char *) utf8_dup_to(wcmd); - char *mode = (char *) utf8_dup_to(wmode); + char *cmd = utf8_dup_to(wcmd); + char *mode = utf8_dup_to(wmode); FILE *f = popen(cmd, mode); free(cmd); free(mode); |