]> git.proxmox.com Git - qemu.git/commitdiff
HMP: move define of mon_cmds
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Mon, 14 Jan 2013 06:06:28 +0000 (14:06 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 17 Jan 2013 12:24:52 +0000 (10:24 -0200)
  Because mon_cmds may use info_cmds, so adjust the declare sequence
of them.

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c

index a77dd3b5d155c80b39a7d3f4cba4ea9fd19a8bf6..ef1b7ac062339b4b6103c86a059aef564223d799 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2433,12 +2433,6 @@ int monitor_handle_fd_param(Monitor *mon, const char *fdname)
     return fd;
 }
 
-/* mon_cmds and info_cmds would be sorted at runtime */
-static mon_cmd_t mon_cmds[] = {
-#include "hmp-commands.h"
-    { NULL, NULL, },
-};
-
 /* Please update hmp-commands.hx when adding or changing commands */
 static mon_cmd_t info_cmds[] = {
     {
@@ -2752,6 +2746,12 @@ static mon_cmd_t info_cmds[] = {
     },
 };
 
+/* mon_cmds and info_cmds would be sorted at runtime */
+static mon_cmd_t mon_cmds[] = {
+#include "hmp-commands.h"
+    { NULL, NULL, },
+};
+
 static const mon_cmd_t qmp_cmds[] = {
 #include "qmp-commands-old.h"
     { /* NULL */ },