summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--utf8.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 949351a5..8d691717 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-05-18 Kaz Kylheku <kaz@kylheku.com>
+ * utf8.c (w_fopen, w_popen): Removing unnecessary casts of
+ return values of ut8_dup_to.
+
+2012-05-18 Kaz Kylheku <kaz@kylheku.com>
+
Implementing new pipe function to get around the limitation
that popen accepts a complete command. We need something which
accepts a program name, and a list of arguments, so that
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);