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. --- common/asshelp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/asshelp.c') diff --git a/common/asshelp.c b/common/asshelp.c index 3b46b5ed3..54d7224d8 100644 --- a/common/asshelp.c +++ b/common/asshelp.c @@ -44,7 +44,7 @@ send_one_option (assuan_context_t ctx, gpg_err_source_t errsource, if (!value || !*value) err = 0; /* Avoid sending empty strings. */ else if (asprintf (&optstr, "OPTION %s=%s", name, value ) < 0) - err = gpg_error_from_errno (errno); + err = gpg_error_from_syserror (); else { err = assuan_transact (ctx, optstr, NULL, NULL, NULL, NULL, NULL, NULL); @@ -116,7 +116,7 @@ send_pinentry_environment (assuan_context_t ctx, { old_lc = strdup (old_lc); if (!old_lc) - return gpg_error_from_errno (errno); + return gpg_error_from_syserror (); } dft_lc = setlocale (LC_CTYPE, ""); #endif @@ -142,7 +142,7 @@ send_pinentry_environment (assuan_context_t ctx, { old_lc = strdup (old_lc); if (!old_lc) - return gpg_error_from_errno (errno); + return gpg_error_from_syserror (); } dft_lc = setlocale (LC_MESSAGES, ""); #endif -- cgit v1.2.3