mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
address Arcterus comments on uutils/coreutils PR 515
Mostly style things.
This commit is contained in:
parent
1954274700
commit
288179be49
2 changed files with 7 additions and 7 deletions
|
@ -146,6 +146,7 @@ To do
|
|||
- mktemp
|
||||
- mv (almost done, one more option)
|
||||
- numfmt
|
||||
- od (in progress, needs lots of work)
|
||||
- pathchk
|
||||
- pinky
|
||||
- pr
|
||||
|
|
|
@ -78,16 +78,15 @@ fn main(radix: Radix, fname: String) {
|
|||
Ok(n) => {
|
||||
print!("{:07o}", addr);
|
||||
match radix {
|
||||
Radix::Decimal => {
|
||||
},
|
||||
Radix::Decimal => {},
|
||||
Radix::Octal => {
|
||||
for b in range(0, n/std::u16::BYTES) {
|
||||
let bs = &bytes[2*b .. 2*b+2];
|
||||
for b in range(0, n / std::u16::BYTES) {
|
||||
let bs = &bytes[(2 * b) .. (2 * b + 2)];
|
||||
let p: u16 = (bs[1] as u16) << 8 | bs[0] as u16;
|
||||
print!(" {:06o}", p);
|
||||
}
|
||||
if n % std::u16::BYTES == 1 {
|
||||
print!(" {:06o}", bytes[n-1]);
|
||||
print!(" {:06o}", bytes[n - 1]);
|
||||
}
|
||||
}
|
||||
_ => { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue