diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gpg-error.h | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2003-06-05 Marcus Brinkmann <[email protected]> + + * src/gpg-error.h (gpg_error_from_errno): Change return type to + gpg_error_t. + 2003-06-04 Marcus Brinkmann <[email protected]> * src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_INV_ENGINE, diff --git a/src/gpg-error.h b/src/gpg-error.h index 4cfbc9d..e7f4adf 100644 --- a/src/gpg-error.h +++ b/src/gpg-error.h @@ -490,6 +490,7 @@ const char *gpg_strsource (gpg_error_t err); this). */ gpg_err_code_t gpg_err_code_from_errno (int err); + /* Retrieve the system error for the error code CODE. This returns 0 if CODE is not a system error code. */ int gpg_err_code_to_errno (gpg_err_code_t code); @@ -504,7 +505,7 @@ gpg_err_make_from_errno (gpg_err_source_t source, int err) } -static __inline__ gpg_err_code_t +static __inline__ gpg_error_t gpg_error_from_errno (int err) { return gpg_error (gpg_err_code_from_errno (err)); |