0.1.2: removed #[no_mangle] for exit function to fix stack overflow
This commit is contained in:
parent
9253c72c06
commit
0fa42e74e1
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "yacexits"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0-or-later"
|
||||
authors = [ "Emma Tebibyte <emma@tebibyte.media>" ]
|
||||
@ -10,6 +10,3 @@ libc = { version = "0.2.14", default-features = false }
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = "0.63.0"
|
||||
|
||||
[lib]
|
||||
crate-type = ["rlib"]
|
||||
|
@ -15,7 +15,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
extern crate core;
|
||||
|
||||
#[no_mangle]
|
||||
pub fn exit(code: u32) -> ! {
|
||||
unsafe { libc::exit(code as u16 as i16 as libc::c_int) }
|
||||
unsafe { libc::exit(code as i32 as libc::c_int); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user