aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2003-06-05 19:12:57 +0000
committerMarcus Brinkmann <[email protected]>2003-06-05 19:12:57 +0000
commita0f5871688c58d2efcd8e435082aad91f576b834 (patch)
tree6438bfdccd68b5079b99d4d00684d4b2e5232d31
parentClarify comments, and add a few more. (diff)
downloadlibgpg-error-a0f5871688c58d2efcd8e435082aad91f576b834.tar.gz
libgpg-error-a0f5871688c58d2efcd8e435082aad91f576b834.zip
2003-06-05 Marcus Brinkmann <[email protected]>
* src/gpg-error.h (gpg_error_from_errno): Change return type to gpg_error_t.
-rw-r--r--ChangeLog5
-rw-r--r--src/gpg-error.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 72c4e11..b48792f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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));