1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #5676 from lcheylus/openbsd-fix

uucore: remove useless conversion for features/fs on OpenBSD
This commit is contained in:
Sylvestre Ledru 2023-12-20 15:44:34 +01:00 committed by GitHub
commit c20f009da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,14 +148,13 @@ impl FileInformation {
#[cfg(unix)]
pub fn inode(&self) -> u64 {
#[cfg(all(
not(any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd")),
not(any(target_os = "freebsd", target_os = "netbsd")),
target_pointer_width = "64"
))]
return self.0.st_ino;
#[cfg(any(
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
not(target_pointer_width = "64")
))]
return self.0.st_ino.into();