From a93b404161dc42f8dee805c8f95bc4974aded9cb Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sat, 21 Nov 2009 19:27:20 -0800 Subject: improve command handling examples Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands. --- src/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hello.c') diff --git a/src/hello.c b/src/hello.c index 9a1bf925..2e5c9289 100644 --- a/src/hello.c +++ b/src/hello.c @@ -101,7 +101,7 @@ COMMAND_HANDLER(handle_hello_command) return retval; } -static const struct command_registration hello_command_handlers[] = { +const struct command_registration hello_command_handlers[] = { { .name = "hello", .handler = &handle_hello_command, -- cgit v1.2.3