aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-02-15 08:45:46 +0000
committerJustus Winter <[email protected]>2017-02-15 15:34:37 +0000
commit6df6e01ed5a581765d245bf7303cda4497d0eb22 (patch)
tree91633e21cf6f6a5d4ecb63f6978c59162c66d0b9 /src/gpgme.h.in
parentpython: Wrap utility functions. (diff)
downloadgpgme-6df6e01ed5a581765d245bf7303cda4497d0eb22.tar.gz
gpgme-6df6e01ed5a581765d245bf7303cda4497d0eb22.zip
core: Fix error types.
* NEWS: Update. * src/data.c (gpgme_data_set_flag): Return a 'gpgme_error_t'. * src/error.c (gpgme_strerror_r): Fix type of first argument. * src/gpgme.h.in (gpgme_strerror_r): Adapt. (gpgme_data_set_flag): Likewise. -- Fix for consistency. This should not pose problems, because typedef gpg_error_t gpgme_error_t. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 67c139be..7f2d34f7 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -177,7 +177,7 @@ const char *gpgme_strerror (gpgme_error_t err);
contains the string describing the error. If the buffer was not
large enough, ERANGE is returned and BUF contains as much of the
beginning of the error string as fits into the buffer. */
-int gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen);
+int gpgme_strerror_r (gpgme_error_t err, char *buf, size_t buflen);
/* Return a pointer to a string containing a description of the error
source in the error value ERR. */
@@ -1161,8 +1161,8 @@ gpgme_error_t gpgme_data_set_file_name (gpgme_data_t dh,
const char *file_name);
/* Set a flag for the data object DH. See the manual for details. */
-gpg_error_t gpgme_data_set_flag (gpgme_data_t dh,
- const char *name, const char *value);
+gpgme_error_t gpgme_data_set_flag (gpgme_data_t dh,
+ const char *name, const char *value);
/* Try to identify the type of the data in DH. */
gpgme_data_type_t gpgme_data_identify (gpgme_data_t dh, int reserved);