hacking

Did some hacking today.

Most was work-related, but at some point I got bored and took up NBD again. It had been a while since I last looked at it, but that wasn't much of a problem.

The code does no longer use global variables anymore (whee!), and it still compiles (whee again!). It also uses getopt_long() now instead of the hand-grown stuff which used to be there (more whee!). I didn't have a setup to test it, however, so there will probably be bugs (no!). Lotsa bugs (Oh no!). I'll have to do that either tonight at home, or later this week...