Browse Source

Force ordering of commands in help list.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
cef551376f
1 changed files with 14 additions and 13 deletions
  1. 14
    13
      src/hci/commands/ifmgmt_cmd.c

+ 14
- 13
src/hci/commands/ifmgmt_cmd.c View File

@@ -143,11 +143,6 @@ static int ifopen_exec ( int argc, char **argv ) {
143 143
 	return ifcommon_exec ( ifopen_payload, "Open", argc, argv );
144 144
 }
145 145
 
146
-struct command ifopen_command __command = {
147
-	.name = "ifopen",
148
-	.exec = ifopen_exec,
149
-};
150
-
151 146
 /* "ifclose" command */
152 147
 
153 148
 static int ifclose_payload ( struct net_device *netdev ) {
@@ -159,11 +154,6 @@ static int ifclose_exec ( int argc, char **argv ) {
159 154
 	return ifcommon_exec ( ifclose_payload, "Close", argc, argv );
160 155
 }
161 156
 
162
-struct command ifclose_command __command = {
163
-	.name = "ifclose",
164
-	.exec = ifclose_exec,
165
-};
166
-
167 157
 /* "ifstat" command */
168 158
 
169 159
 static int ifstat_payload ( struct net_device *netdev ) {
@@ -176,7 +166,18 @@ static int ifstat_exec ( int argc, char **argv ) {
176 166
 			       argc, argv );
177 167
 }
178 168
 
179
-struct command ifstat_command __command = {
180
-	.name = "ifstat",
181
-	.exec = ifstat_exec,
169
+/** Interface management commands */
170
+struct command ifmgmt_commands[] __command = {
171
+	{
172
+		.name = "ifopen",
173
+		.exec = ifopen_exec,
174
+	},
175
+	{
176
+		.name = "ifclose",
177
+		.exec = ifclose_exec,
178
+	},
179
+	{
180
+		.name = "ifstat",
181
+		.exec = ifstat_exec,
182
+	},
182 183
 };

Loading…
Cancel
Save