check top-level command registrations
commitc5eb8e29bdc296c2d0b25cc771639567b5f7707f
authorZachary T Welch <zw@superlucidity.net>
Fri, 4 Dec 2009 01:38:24 +0000 (3 17:38 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 4 Dec 2009 11:29:15 +0000 (4 03:29 -0800)
tree49861352c57f3a331a2b4a173e6d8b679100e7ef
parenteae56d27c3892188560918526710d44d147b0c8d
check top-level command registrations

When calling module_register_commands, the return value needs to be
checked for failures.  Instead of duplicating code, use an array of
function pointers to the identical registration functions to iterate
over during startup.
src/openocd.c