From bbcb5f3df1b5d4628a8247d81718db6f1158c48a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 18 May 2012 09:01:21 -0700 Subject: * utf8.c (w_fopen, w_popen): Removing unnecessary casts of return values of ut8_dup_to. --- utf8.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 1d463f06..0856070e 100644 --- a/utf8.c +++ b/utf8.c @@ -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); -- cgit v1.2.3