aboutsummaryrefslogtreecommitdiffstats
path: root/common/maperror.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-12-18 10:22:10 +0000
committerWerner Koch <[email protected]>2004-12-18 10:22:10 +0000
commit3666a2859bd31115708b027cb69fa824c8111de4 (patch)
tree97d6df62972435b0b200232225553377bbcb005c /common/maperror.c
parent2004-12-17 Moritz Schulte <[email protected]> (diff)
downloadgnupg-3666a2859bd31115708b027cb69fa824c8111de4.tar.gz
gnupg-3666a2859bd31115708b027cb69fa824c8111de4.zip
Avoid the " map_to_assuan_status called with no error source" diagnostic.
Diffstat (limited to '')
-rw-r--r--common/maperror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/maperror.c b/common/maperror.c
index 89ecee987..91731468f 100644
--- a/common/maperror.c
+++ b/common/maperror.c
@@ -38,7 +38,7 @@
simple: All errors with a gpg_err_source of UNKNOWN are genuine
Assuan codes all others are passed verbatim through. */
gpg_error_t
-map_assuan_err (int err)
+map_assuan_err_with_source (int err, int source)
{
gpg_err_code_t ec;
@@ -77,7 +77,7 @@ map_assuan_err (int err)
ec = err < 100? GPG_ERR_ASSUAN_SERVER_FAULT : GPG_ERR_ASSUAN;
break;
}
- return gpg_err_make (GPG_ERR_SOURCE_UNKNOWN, ec);
+ return gpg_err_make (source, ec);
}
/* Map GPG_xERR_xx error codes to Assuan status codes */