From 8495b4f031098bb83996fc5c62c7d77f781f6dc2 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 27 Sep 2007 11:44:45 +0000 Subject: 2007-09-27 Marcus Brinkmann * assuan-pipe-connect.c (pipe_connect_gpgme): Fix last change. gpgme/ 2007-09-27 Marcus Brinkmann * w32-glib-io.c (_gpgme_io_pipe), w32-qt-io.c (_gpgme_io_pipe), w32-io.c (_gpgme_io_pipe), posix-io.c (_gpgme_io_pipe): Fix debug output. --- assuan/assuan-pipe-connect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'assuan/assuan-pipe-connect.c') diff --git a/assuan/assuan-pipe-connect.c b/assuan/assuan-pipe-connect.c index 1b6418f2..359eb494 100644 --- a/assuan/assuan-pipe-connect.c +++ b/assuan/assuan-pipe-connect.c @@ -571,7 +571,7 @@ pipe_connect_gpgme (assuan_context_t *ctx, { assuan_error_t err; int pid; -int rp[2]; + int rp[2]; int wp[2]; char mypidstr[50]; struct spawn_fd_item_s child_fds[3]; /* stdin, stdout, terminating -1 */ @@ -586,10 +586,10 @@ int rp[2]; sprintf (mypidstr, "%lu", (unsigned long)getpid ()); /* Create the two pipes. */ - if (_gpgme_io_pipe (rp, 0)) + if (_gpgme_io_pipe (rp, 1)) return _assuan_error (ASSUAN_General_Error); - if (_gpgme_io_pipe (wp, 1)) + if (_gpgme_io_pipe (wp, 0)) { _gpgme_io_close (rp[0]); _gpgme_io_close (rp[1]); @@ -706,7 +706,7 @@ build_w32_commandline (const char * const *argv, char **cmdline) #ifdef HAVE_W32_SYSTEM -/* Create pipe where one end end is inheritable. */ +/* Create pipe where one end is inheritable. */ static int create_inheritable_pipe (int filedes[2], int for_write) { -- cgit v1.2.3