summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/src/error.rs')
-rw-r--r--openpgp-ffi/src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/error.rs b/openpgp-ffi/src/error.rs
index 991b22db..66dd7417 100644
--- a/openpgp-ffi/src/error.rs
+++ b/openpgp-ffi/src/error.rs
@@ -45,7 +45,7 @@ impl ::MoveResultIntoRaw<::error::Status> for ::failure::Fallible<()>
/// Returns the error status code.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle]
-pub extern "system" fn pgp_error_status(error: *const Error)
+pub extern "C" fn pgp_error_status(error: *const Error)
-> Status {
error.ref_raw().into()
}
@@ -145,7 +145,7 @@ pub enum Status {
///
/// The returned value must *not* be freed.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle]
-pub extern "system" fn pgp_status_to_string(status: Status) -> *const c_char {
+pub extern "C" fn pgp_status_to_string(status: Status) -> *const c_char {
use error::Status::*;
match status {