summaryrefslogtreecommitdiffstats
path: root/src/hci/commands/nvo_cmd.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-10 06:13:20 +0100
committerMichael Brown2007-01-10 06:13:20 +0100
commitf396f1f9d3d495805aaf121ec48549e2ceb6c602 (patch)
treef7e1dab7a918827b095c9a87f09d160cb6df966f /src/hci/commands/nvo_cmd.c
parentForce ordering of commands in help list. (diff)
downloadipxe-f396f1f9d3d495805aaf121ec48549e2ceb6c602.tar.gz
ipxe-f396f1f9d3d495805aaf121ec48549e2ceb6c602.tar.xz
ipxe-f396f1f9d3d495805aaf121ec48549e2ceb6c602.zip
Force ordering of commands within help list.
Diffstat (limited to 'src/hci/commands/nvo_cmd.c')
-rw-r--r--src/hci/commands/nvo_cmd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c
index bbc9a749..91c13205 100644
--- a/src/hci/commands/nvo_cmd.c
+++ b/src/hci/commands/nvo_cmd.c
@@ -38,11 +38,6 @@ static int show_exec ( int argc, char **argv ) {
return 0;
}
-struct command show_command __command = {
- .name = "show",
- .exec = show_exec,
-};
-
static int set_exec ( int argc, char **argv ) {
struct config_context dummy_context;
int rc;
@@ -74,11 +69,6 @@ static int set_exec ( int argc, char **argv ) {
return 0;
}
-struct command set_command __command = {
- .name = "set",
- .exec = set_exec,
-};
-
static int clear_exec ( int argc, char **argv ) {
struct config_context dummy_context;
int rc;
@@ -104,7 +94,17 @@ static int clear_exec ( int argc, char **argv ) {
return 0;
}
-struct command clear_command __command = {
- .name = "clear",
- .exec = clear_exec,
+struct command nvo_commands[] __command = {
+ {
+ .name = "show",
+ .exec = show_exec,
+ },
+ {
+ .name = "set",
+ .exec = set_exec,
+ },
+ {
+ .name = "clear",
+ .exec = clear_exec,
+ },
};