libgetopt.rs(3): fixes typecasting for ARM devices

This commit is contained in:
Emma Tebibyte 2024-06-28 10:22:20 -06:00
parent d07bb7da41
commit 50bbee10a9
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -88,7 +88,7 @@ impl GetOpt for Vec<String> {
/* god knows what this does */
let boxed = Box::into_raw(c_strings.into_boxed_slice());
let argv = boxed as *const *mut i8;
let argv = boxed as *const *mut c_char;
/* operations are separated out so that everything lives long enough */
let opts = CString::new(optstring).unwrap().into_raw();