aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/helpers/indirect_cuinit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zluda_inject/tests/helpers/indirect_cuinit.rs')
-rw-r--r--zluda_inject/tests/helpers/indirect_cuinit.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zluda_inject/tests/helpers/indirect_cuinit.rs b/zluda_inject/tests/helpers/indirect_cuinit.rs
index 3b4f1a7..f254dc1 100644
--- a/zluda_inject/tests/helpers/indirect_cuinit.rs
+++ b/zluda_inject/tests/helpers/indirect_cuinit.rs
@@ -10,7 +10,7 @@ extern "system" {
fn main() {
let nvcuda = unsafe { LoadLibraryA(b"C:\\Windows\\System32\\nvcuda.dll\0".as_ptr()) };
- let cuInit = unsafe { GetProcAddress(nvcuda, b"cuInit\0".as_ptr()) };
- let cuInit = unsafe { mem::transmute::<_, unsafe extern "system" fn(u32) -> u32>(cuInit) };
- unsafe { cuInit(0) };
+ let cu_init = unsafe { GetProcAddress(nvcuda, b"cuInit\0".as_ptr()) };
+ let cu_init = unsafe { mem::transmute::<_, unsafe extern "system" fn(u32) -> u32>(cu_init) };
+ unsafe { cu_init(0) };
}