diff options
author | Werner Koch <[email protected]> | 2004-12-18 10:22:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-12-18 10:22:10 +0000 |
commit | 3666a2859bd31115708b027cb69fa824c8111de4 (patch) | |
tree | 97d6df62972435b0b200232225553377bbcb005c /common/maperror.c | |
parent | 2004-12-17 Moritz Schulte <[email protected]> (diff) | |
download | gnupg-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.c | 4 |
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 */ |