瀏覽代碼

Force ordering of commands within help list.

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
f396f1f9d3
共有 1 個檔案被更改,包括 13 行新增13 行删除
  1. 13
    13
      src/hci/commands/nvo_cmd.c

+ 13
- 13
src/hci/commands/nvo_cmd.c 查看文件

@@ -38,11 +38,6 @@ static int show_exec ( int argc, char **argv ) {
38 38
 	return 0;
39 39
 }
40 40
 
41
-struct command show_command __command = {
42
-	.name = "show",
43
-	.exec = show_exec,
44
-};
45
-
46 41
 static int set_exec ( int argc, char **argv ) {
47 42
 	struct config_context dummy_context;
48 43
 	int rc;
@@ -74,11 +69,6 @@ static int set_exec ( int argc, char **argv ) {
74 69
 	return 0;
75 70
 }
76 71
 
77
-struct command set_command __command = {
78
-	.name = "set",
79
-	.exec = set_exec,
80
-};
81
-
82 72
 static int clear_exec ( int argc, char **argv ) {
83 73
 	struct config_context dummy_context;
84 74
 	int rc;
@@ -104,7 +94,17 @@ static int clear_exec ( int argc, char **argv ) {
104 94
 	return 0;
105 95
 }
106 96
 
107
-struct command clear_command __command = {
108
-	.name = "clear",
109
-	.exec = clear_exec,
97
+struct command nvo_commands[] __command = {
98
+	{
99
+		.name = "show",
100
+		.exec = show_exec,
101
+	},
102
+	{
103
+		.name = "set",
104
+		.exec = set_exec,
105
+	},	
106
+	{
107
+		.name = "clear",
108
+		.exec = clear_exec,
109
+	},
110 110
 };

Loading…
取消
儲存