[svn] gpgme - r1432 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Wed Nov 25 18:57:06 CET 2009
Author: marcus
Date: 2009-11-25 18:57:05 +0100 (Wed, 25 Nov 2009)
New Revision: 1432
Modified:
trunk/src/ChangeLog
trunk/src/gpgme-tool.c
Log:
2009-11-25 Marcus Brinkmann <marcus at g10code.de>
* gpgme-tool.c (gpgme_server): Use assuan_fd_t and assuan_fdopen
on fds.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2009-11-17 13:06:05 UTC (rev 1431)
+++ trunk/src/ChangeLog 2009-11-25 17:57:05 UTC (rev 1432)
@@ -1,3 +1,8 @@
+2009-11-25 Marcus Brinkmann <marcus at g10code.de>
+
+ * gpgme-tool.c (gpgme_server): Use assuan_fd_t and assuan_fdopen
+ on fds.
+
2009-11-13 <wk at g10code.com>
* sign.c (_gpgme_sign_status_handler): Handle SIG_CREATED_SEEN.
Modified: trunk/src/gpgme-tool.c
===================================================================
--- trunk/src/gpgme-tool.c 2009-11-17 13:06:05 UTC (rev 1431)
+++ trunk/src/gpgme-tool.c 2009-11-25 17:57:05 UTC (rev 1432)
@@ -2060,7 +2060,7 @@
gpgme_server (gpgme_tool_t gt)
{
gpg_error_t err;
- int filedes[2];
+ assuan_fd_t filedes[2];
struct server server;
static const char hello[] = ("GPGME-Tool " VERSION " ready");
@@ -2079,8 +2079,8 @@
/* We use a pipe based server so that we can work from scripts.
assuan_init_pipe_server will automagically detect when we are
called with a socketpair and ignore FIELDES in this case. */
- filedes[0] = 0;
- filedes[1] = 1;
+ filedes[0] = assuan_fdopen (0);
+ filedes[1] = assuan_fdopen (1);
err = assuan_new (&server.assuan_ctx);
if (err)
log_error (1, err, "can't create assuan context");
More information about the Gnupg-commits
mailing list