Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Feb 3, 2025
1 parent 1977e78 commit acbba67
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mirrord/layer/src/file/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,7 @@ unsafe extern "C" fn fstatfs_detour(fd: c_int, out_stat: *mut statfs) -> c_int {

/// Hook for `libc::statfs`.
#[hook_guard_fn]
unsafe extern "C" fn statfs_detour(
raw_path: *const c_char,
out_stat: *mut statfs,
) -> c_int {
unsafe extern "C" fn statfs_detour(raw_path: *const c_char, out_stat: *mut statfs) -> c_int {
if out_stat.is_null() {
return HookError::BadPointer.into();
}
Expand Down

0 comments on commit acbba67

Please sign in to comment.