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

mknod: remove repeated macro

This commit is contained in:
Knight 2016-06-17 13:27:19 +08:00
parent b34efd72b1
commit d46a02b586

View file

@ -46,14 +46,6 @@ fn _makenod(path: CString, mode: mode_t, dev: dev_t) -> i32 {
unsafe { libc::mknod(path.as_ptr(), mode, dev) } unsafe { libc::mknod(path.as_ptr(), mode, dev) }
} }
macro_rules! disp_err {
($($args:tt)+) => ({
pipe_write!(&mut ::std::io::stderr(), "{}: ", NAME);
pipe_writeln!(&mut ::std::io::stderr(), $($args)+);
pipe_writeln!(&mut ::std::io::stderr(), "Try '{} --help' for more information.", NAME);
})
}
pub fn uumain(args: Vec<String>) -> i32 { pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = Options::new(); let mut opts = Options::new();