Improve structure
authorWouter Verhelst <w@uter.be>
Sat, 24 Jul 2010 19:07:00 +0000 (21:07 +0200)
committerWouter Verhelst <w@uter.be>
Sat, 24 Jul 2010 19:15:22 +0000 (21:15 +0200)
commit97b23163aa95a472591f1343ea94bbe4a243b442
treeb05799eab7a97074282ad596d3c2c30c2e480eac
parent4a20a08ddfa5ca76ed7196fa64ec92d04b2fe515
Improve structure

- Use getopt_long_only() to implement option parsing. This probably
  makes use of small C libraries harder, but that wasn't very much
  possible to begin with, anyway.
- Deprecate bs= and timeout= options in favour of new --block-size and
  --timeout options.
- Compartmentalize a bit more. Yes, the compiler will optimize that away
  in some cases, but what do I care, I don't need to write assembler
  code.

Documentation update to follow.
nbd-client.c