From 0d9d0a6b5b0c6f474a079bbaef11078c5df5f3b5 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 16 Oct 2015 09:51:42 +0900 Subject: 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. --- src/data-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/data-compat.c') diff --git a/src/data-compat.c b/src/data-compat.c index 99827f16..abb78637 100644 --- a/src/data-compat.c +++ b/src/data-compat.c @@ -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) { -- cgit v1.2.3