fix lots of warnings

fix warnings
This commit is contained in:
Mackenzie Clark
2019-03-15 14:10:17 -07:00
parent b0b0a17d6e
commit 14104c2c8b
12 changed files with 70 additions and 46 deletions

View File

@ -7,8 +7,8 @@ type CallProtectedResult = Result<(), CallProtectedData>;
#[repr(C)]
pub struct CallProtectedData {
pub code: u64,
pub exceptionAddress: u64,
pub instructionPointer: u64,
pub exception_address: u64,
pub instruction_pointer: u64,
}
extern "C" {
@ -32,8 +32,8 @@ pub fn _call_protected(
) -> CallProtectedResult {
let mut out_result = CallProtectedData {
code: 0,
exceptionAddress: 0,
instructionPointer: 0,
exception_address: 0,
instruction_pointer: 0,
};
let result = unsafe {
__call_protected(