diff options
author | Werner Koch <wk@gnupg.org> | 2017-07-05 20:10:56 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-07-05 20:10:56 +0200 |
commit | 85a9a913da9ecc6b2cd6f743e90e49983251d706 (patch) | |
tree | 0a732a623b5412a2fbd77dc28035077352f85726 /src/gcrypt.h.in | |
parent | 0d30a4a9791d20c8881b5b12bd44611d9f4274cd (diff) | |
download | libgcrypt-85a9a913da9ecc6b2cd6f743e90e49983251d706.tar.gz |
build: Minor API fixes to fix build problems on AIX.
* src/gcrypt.h.in (gcry_error_from_errno): Fix return type.
* src/visibility.c (gcry_md_extract): Change return type to match the
prototype.
--
IBM compiler optimize enums and thus enums may be shorter than an
unsigned int. Thus an
assert (sizeof (gpg_error_t) == sizeof (gpg_err_code_t)
would fail. The deatils seem to depend on the passed compiler options
which explains that it has been only reported now.
GnuPG-bug-id: 3256
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r-- | src/gcrypt.h.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index 8d20c83b..9a9acc4b 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -189,7 +189,7 @@ int gcry_err_code_to_errno (gcry_err_code_t code); gcry_error_t gcry_err_make_from_errno (gcry_err_source_t source, int err); /* Return an error value with the system error ERR. */ -gcry_err_code_t gcry_error_from_errno (int err); +gcry_error_t gcry_error_from_errno (int err); /* NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore |