From 01437669cd86778d3687c448f874df99d1f587fe Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 2 Apr 2025 00:25:53 -0400 Subject: [PATCH] tree/ls_util/entry: warning cleanup --- tree/ls_util/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/ls_util/entry.rs b/tree/ls_util/entry.rs index 7f612f02..c85d223c 100644 --- a/tree/ls_util/entry.rs +++ b/tree/ls_util/entry.rs @@ -702,7 +702,7 @@ fn get_file_info(metadata: &ftw::Metadata) -> FileInfo { // major ID - class of the device // minor ID - specific instance of a device - let (major, minor) = unsafe { + let (major, minor) = { ( libc::major(device_id as libc::dev_t), libc::minor(device_id as libc::dev_t),