diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gcrypt-int.h | 12 | ||||
-rw-r--r-- | src/global.c | 2 | ||||
-rw-r--r-- | src/sexp.c | 4 | ||||
-rw-r--r-- | src/visibility.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/gcrypt-int.h b/src/gcrypt-int.h index ea3c8d53..8014d617 100644 --- a/src/gcrypt-int.h +++ b/src/gcrypt-int.h @@ -277,7 +277,7 @@ _gcry_err_code_to_errno (gcry_err_code_t code) /* Return an error value with the error source SOURCE and the system error ERR. */ -static inline gcry_err_code_t +static inline gcry_error_t _gcry_err_make_from_errno (gpg_err_source_t source, int err) { return gpg_err_make_from_errno (source, err); @@ -285,7 +285,7 @@ _gcry_err_make_from_errno (gpg_err_source_t source, int err) /* Return an error value with the system error ERR. */ -static inline gcry_err_code_t +static inline gcry_error_t _gcry_error_from_errno (int err) { return gpg_error (gpg_err_code_from_errno (err)); @@ -329,10 +329,10 @@ void *_gcry_sexp_nth_buffer (const gcry_sexp_t list, int number, size_t *rlength); char *_gcry_sexp_nth_string (gcry_sexp_t list, int number); gcry_mpi_t _gcry_sexp_nth_mpi (gcry_sexp_t list, int number, int mpifmt); -gpg_error_t _gcry_sexp_extract_param (gcry_sexp_t sexp, - const char *path, - const char *list, - ...) _GCRY_GCC_ATTR_SENTINEL(0); +gpg_err_code_t _gcry_sexp_extract_param (gcry_sexp_t sexp, + const char *path, + const char *list, + ...) _GCRY_GCC_ATTR_SENTINEL(0); #define sexp_new(a, b, c, d) _gcry_sexp_new ((a), (b), (c), (d)) #define sexp_create(a, b, c, d, e) _gcry_sexp_create ((a), (b), (c), (d), (e)) diff --git a/src/global.c b/src/global.c index 4e8df86d..22903930 100644 --- a/src/global.c +++ b/src/global.c @@ -490,7 +490,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr) _gcry_set_preferred_rng_type (0); rc = _gcry_rndegd_set_socket_name (va_arg (arg_ptr, const char *)); #else - rc = gpg_error (GPG_ERR_NOT_SUPPORTED); + rc = GPG_ERR_NOT_SUPPORTED; #endif break; @@ -2423,7 +2423,7 @@ _gcry_sexp_vextract_param (gcry_sexp_t sexp, const char *path, return rc; } -gpg_error_t +gpg_err_code_t _gcry_sexp_extract_param (gcry_sexp_t sexp, const char *path, const char *list, ...) { @@ -2433,5 +2433,5 @@ _gcry_sexp_extract_param (gcry_sexp_t sexp, const char *path, va_start (arg_ptr, list); rc = _gcry_sexp_vextract_param (sexp, path, list, arg_ptr); va_end (arg_ptr); - return gpg_error (rc); + return rc; } diff --git a/src/visibility.c b/src/visibility.c index 3e1f28bd..cbf24e77 100644 --- a/src/visibility.c +++ b/src/visibility.c @@ -57,7 +57,7 @@ gcry_err_make_from_errno (gcry_err_source_t source, int err) return _gcry_err_make_from_errno (source, err); } -gcry_err_code_t +gcry_error_t gcry_error_from_errno (int err) { return _gcry_error_from_errno (err); |