diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-07-01 00:01:35 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-07-01 00:01:35 +0000 |
commit | ada1a3eb56d0026ac9248c68d5e85cf810731da0 (patch) | |
tree | 02bcfa95d12507121df2d41238b133768e18caaa /bin/dd/dd.h | |
parent | 6e93a75983ae9033f35fc0ea5f4973ad44e72293 (diff) |
sleep(1): simplify argument parsing
- No need for intermediate variables, just build the timespec directly
- Use for-loops so we modify "cp" on a single line in each loop
- Parse subseconds with one loop: less code, easier to read, etc.
- Improve the subsecond parsing comment: make our intent really obvious
ok schwarze@
Diffstat (limited to 'bin/dd/dd.h')
0 files changed, 0 insertions, 0 deletions