cleanup: Fix type mismatch around gpgme_error_t.
* src/data-compat.c (gpgme_error_to_errno): Use gpg_err_code to get error code from gpgme_error_t. * src/gpgme.c (gpgme_new): Don't use gpgme_error.
This commit is contained in:
parent
f0ccce855b
commit
0d9d0a6b5b
@ -146,7 +146,7 @@ gpgme_data_new_from_file (gpgme_data_t *r_dh, const char *fname, int copy)
|
||||
static int
|
||||
gpgme_error_to_errno (gpgme_error_t err)
|
||||
{
|
||||
int res = gpg_err_code_to_errno (err);
|
||||
int res = gpg_err_code_to_errno (gpg_err_code (err));
|
||||
|
||||
if (!err)
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ gpgme_new (gpgme_ctx_t *r_ctx)
|
||||
TRACE_BEG (DEBUG_CTX, "gpgme_new", r_ctx);
|
||||
|
||||
if (_gpgme_selftest)
|
||||
return TRACE_ERR (gpgme_error (_gpgme_selftest));
|
||||
return TRACE_ERR (_gpgme_selftest);
|
||||
|
||||
if (!r_ctx)
|
||||
return TRACE_ERR (gpg_error (GPG_ERR_INV_VALUE));
|
||||
|
Loading…
Reference in New Issue
Block a user