summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-05-18 09:01:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-05-18 09:01:21 -0700
commitbbcb5f3df1b5d4628a8247d81718db6f1158c48a (patch)
treebeddd8900b2380d866202654f0da6a0538acfc3a /utf8.c
parentf92a6b5a3b9c10d0de19b29a99086a4f033710e5 (diff)
downloadtxr-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.c8
1 files changed, 4 insertions, 4 deletions
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);