opt: minor API tweaks.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Oct 2010 12:03:56 +0000 (22:33 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Oct 2010 12:03:56 +0000 (22:33 +1030)
commitbe6a5cdadeef4995cc935f2d2443f45f542ed125
tree55c58b4f67f3d5db8aea61c3a6a73947eb9a94ad
parentf4b1f445a7b21b1599530afb897ef54efe15479d
opt: minor API tweaks.

Don't allow NULL descs, and put them in macro.  Users can use "", but make
sure it's explicit, not an accidental omission.
Use errx() instead of assert() for API usage errors.
Rename opt_flags to opt_type.
ccan/opt/opt.c
ccan/opt/opt.h
ccan/opt/test/run-correct-reporting.c
ccan/opt/test/run-helpers.c
ccan/opt/test/run.c
ccan/opt/test/utils.c
ccan/opt/usage.c