Use dynamic registration/usage invocation of command types

This commit is contained in:
Martin Willi
2009-09-10 16:18:30 +02:00
parent 6be68cc1c7
commit 3ce9438b60
9 changed files with 77 additions and 68 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ end:
usage:
san->destroy_offset(san, offsetof(identification_t, destroy));
options->destroy(options);
return command_usage(CMD_SELF, error);
return command_usage(error);
}
/**
@@ -214,7 +214,7 @@ usage:
*/
static void __attribute__ ((constructor))reg()
{
command_register(CMD_SELF, (command_t) {
command_register((command_t) {
self, 's', "self",
"create a self signed certificate",
{"[--in file] [--type rsa|ecdsa]",