aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/sysutils.c')
-rw-r--r--common/sysutils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index 50f70b043..ef180220a 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -280,8 +280,7 @@ int
translate_sys2libc_fd (gnupg_fd_t fd, int for_write)
{
#if defined(HAVE_W32CE_SYSTEM)
- (void)for_write;
- return (int)fd;
+ return (int) _assuan_w32ce_finish_pipe ((int)fd, for_write);
#elif defined(HAVE_W32_SYSTEM)
int x;
@@ -308,8 +307,7 @@ int
translate_sys2libc_fd_int (int fd, int for_write)
{
#if HAVE_W32CE_SYSTEM
- fd = (int) _assuan_w32ce_finish_pipe (fd, for_write);
- return translate_sys2libc_fd ((void*)fd, for_write);
+ return (int) _assuan_w32ce_finish_pipe (fd, for_write);
#elif HAVE_W32_SYSTEM
if (fd <= 2)
return fd; /* Do not do this for error, stdin, stdout, stderr. */