about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorAyush Singh <ayushsingh1325@gmail.com>2022-12-10 13:34:19 +0530
committerAyush Singh <ayushsingh1325@gmail.com>2023-01-28 11:24:13 +0530
commitc50d3e28ab0bfaedd1f0f90a376e6f93e4e83c62 (patch)
tree7d6f026aa9fd2263f296d5fb6b744229fa769c51 /library/std/src/sys
parent6cd6bad51fb34a0d89e97c27814041fe4d0838b5 (diff)
downloadrust-c50d3e28ab0bfaedd1f0f90a376e6f93e4e83c62.tar.gz
rust-c50d3e28ab0bfaedd1f0f90a376e6f93e4e83c62.zip
Replace libc::{type} with crate::ffi::{type}
Replace libc::{type} imports with crate::ffi::{type} outside of
`std::sys` and `std::os`.

Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/windows/thread_parking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/thread_parking.rs b/library/std/src/sys/windows/thread_parking.rs
index 5d43676adbb..eb9167cd855 100644
--- a/library/std/src/sys/windows/thread_parking.rs
+++ b/library/std/src/sys/windows/thread_parking.rs
@@ -221,7 +221,7 @@ impl Parker {
 
 fn keyed_event_handle() -> c::HANDLE {
     const INVALID: c::HANDLE = ptr::invalid_mut(!0);
-    static HANDLE: AtomicPtr<libc::c_void> = AtomicPtr::new(INVALID);
+    static HANDLE: AtomicPtr<crate::ffi::c_void> = AtomicPtr::new(INVALID);
     match HANDLE.load(Relaxed) {
         INVALID => {
             let mut handle = c::INVALID_HANDLE_VALUE;