mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
2010-06-10 Marcus Brinkmann <marcus@g10code.de>
* sysutils.c (translate_sys2libc_fd) [HAVE_W32CE_SYSTEM]: Implement. (translate_sys2libc_fd_int) [HAVE_W32CE_SYSTEM]: Don't call translate_sys2libc_fd.
This commit is contained in:
parent
fd5193ac8c
commit
82aaa6ab76
2 changed files with 7 additions and 4 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue