2009-11-25 Marcus Brinkmann <marcus@g10code.de>

* gpgme-tool.c (gpgme_server): Use assuan_fd_t and assuan_fdopen
	on fds.
This commit is contained in:
Marcus Brinkmann 2009-11-25 17:57:05 +00:00
parent 1cb08a35a6
commit ef640ca8ef
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-11-25 Marcus Brinkmann <marcus@g10code.de>
* gpgme-tool.c (gpgme_server): Use assuan_fd_t and assuan_fdopen
on fds.
2009-11-13 <wk@g10code.com>
* sign.c (_gpgme_sign_status_handler): Handle SIG_CREATED_SEEN.

View File

@ -2060,7 +2060,7 @@ void
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 @@ gpgme_server (gpgme_tool_t gt)
/* 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");