diff options
Diffstat (limited to 'common/sysutils.c')
-rw-r--r-- | common/sysutils.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index faff7e4a2..b6e22e943 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -556,24 +556,6 @@ translate_sys2libc_fd (gnupg_fd_t fd, int for_write) #endif } -/* This is the same as translate_sys2libc_fd but takes an integer - which is assumed to be such an system handle. On WindowsCE the - passed FD is a rendezvous ID and the function finishes the pipe - creation. */ -int -translate_sys2libc_fd_int (int fd, int for_write) -{ -#ifdef HAVE_W32_SYSTEM - if (fd <= 2) - return fd; /* Do not do this for error, stdin, stdout, stderr. */ - - return translate_sys2libc_fd ((void*)fd, for_write); -#else - (void)for_write; - return fd; -#endif -} - /* * Parse the string representation of a file reference (file handle on @@ -697,7 +679,7 @@ check_special_filename (const char *fname, int for_write, int notranslate) ; if (!fname[i]) return notranslate? atoi (fname) - /**/ : translate_sys2libc_fd_int (atoi (fname), for_write); + /**/ : translate_sys2libc_fdstr (fname, for_write); } return -1; } |