diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-08 15:39:46 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-08 15:47:44 +0200 |
commit | e68bb1e266a51ba9226328519989798d571c099b (patch) | |
tree | 2a9d0099232902389284e961c3fe90691150d4be /openpgp-ffi | |
parent | e63f09ed6fe9078a326a2f1d62a846fc876f9ca1 (diff) |
openpgp-ffi: Use extern "C", not extern "system"
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/packet/userid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/packet/userid.rs b/openpgp-ffi/src/packet/userid.rs index 0db8824c..831e7f1f 100644 --- a/openpgp-ffi/src/packet/userid.rs +++ b/openpgp-ffi/src/packet/userid.rs @@ -16,7 +16,7 @@ use MoveIntoRaw; /// /// `value` need not be valid UTF-8, but it must be NUL terminated. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] -pub extern "system" fn pgp_user_id_new(value: *const c_char) +pub extern "C" fn pgp_user_id_new(value: *const c_char) -> *mut Packet { let value : &[u8] = ffi_param_cstr!(value).to_bytes(); @@ -28,7 +28,7 @@ pub extern "system" fn pgp_user_id_new(value: *const c_char) /// /// `value` need not be valid UTF-8. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] -pub extern "system" fn pgp_user_id_from_raw(value: *const uint8_t, len: size_t) +pub extern "C" fn pgp_user_id_from_raw(value: *const uint8_t, len: size_t) -> *mut Packet { let value : &[u8] = unsafe { std::slice::from_raw_parts(value, len) }; |