Fix style
This commit is contained in:
parent
a4ce3a8755
commit
1ee80568ef
@ -1516,23 +1516,23 @@ f! {
|
||||
}
|
||||
|
||||
pub fn major(dev: ::dev_t) -> ::c_uint {
|
||||
// see
|
||||
// https://github.com/kripken/emscripten/blob/
|
||||
// master/system/include/libc/sys/sysmacros.h
|
||||
let mut major = 0;
|
||||
major |= (dev & 0x00000fff) >> 8;
|
||||
major |= (dev & 0xfffff000) >> 31 >> 1;
|
||||
major as ::c_uint
|
||||
// see
|
||||
// https://github.com/kripken/emscripten/blob/
|
||||
// master/system/include/libc/sys/sysmacros.h
|
||||
let mut major = 0;
|
||||
major |= (dev & 0x00000fff) >> 8;
|
||||
major |= (dev & 0xfffff000) >> 31 >> 1;
|
||||
major as ::c_uint
|
||||
}
|
||||
|
||||
pub fn minor(dev: ::dev_t) -> ::c_uint {
|
||||
// see
|
||||
// https://github.com/kripken/emscripten/blob/
|
||||
// master/system/include/libc/sys/sysmacros.h
|
||||
let mut minor = 0;
|
||||
minor |= (dev & 0x000000ff) >> 0;
|
||||
minor |= (dev & 0xffffff00) >> 12;
|
||||
minor as ::c_uint
|
||||
// see
|
||||
// https://github.com/kripken/emscripten/blob/
|
||||
// master/system/include/libc/sys/sysmacros.h
|
||||
let mut minor = 0;
|
||||
minor |= (dev & 0x000000ff) >> 0;
|
||||
minor |= (dev & 0xffffff00) >> 12;
|
||||
minor as ::c_uint
|
||||
}
|
||||
|
||||
pub fn makedev(major: ::c_uint, minor: ::c_uint) -> ::dev_t {
|
||||
|
Loading…
Reference in New Issue
Block a user