ls: use libc::{major, minor} to calculate device number

This commit is contained in:
Steve Lau 2022-11-09 17:13:34 +08:00
parent 2bb75a92b5
commit 7f7bac29b7

View file

@ -296,8 +296,7 @@ enum Sort {
#[derive(PartialEq)]
enum SizeFormat {
Bytes,
Binary,
// Powers of 1024, --human-readable, -h
Binary, // Powers of 1024, --human-readable, -h
Decimal, // Powers of 1000, --si
}