Makefile: better deps; fop(1), hru(1), strerror(3): changed strerror wrapper function name
This commit is contained in:
@@ -13,7 +13,7 @@ use std::ffi::{ c_int, c_char, CStr };
|
||||
extern "C" { fn strerror(errnum: c_int) -> *mut c_char; }
|
||||
|
||||
/* wrapper function for use in Rust */
|
||||
pub fn c_error(err: std::io::Error) -> String {
|
||||
pub fn raw_message(err: std::io::Error) -> String {
|
||||
/* Get the raw OS error. If it’s None, what the hell is going on‽ */
|
||||
let error = err.raw_os_error().unwrap_or_else(|| { panic!() }) as c_int;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user