From 03d3322e5fb928d48ea4192fd2f2cc851d791421 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Sep 2006 16:50:33 +0000 Subject: Take advantage of newer gpg-error features. --- scd/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scd/command.c') diff --git a/scd/command.c b/scd/command.c index 573a91706..3883bfc5e 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1504,7 +1504,7 @@ cmd_apdu (assuan_context_t ctx, char *line) apdu = hex_to_buffer (line, &apdulen); if (!apdu) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); goto leave; } if (apdulen) @@ -1603,7 +1603,7 @@ scd_command_handler (int fd) } else { - rc = assuan_init_connected_socket_server (&ctx, fd); + rc = assuan_init_socket_server_ext (&ctx, fd, 2); } if (rc) { -- cgit v1.2.3