From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9q8-0001PO-LD for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:33:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1To9q6-0004ey-Ou for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:33:24 -0500 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:60165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9q5-0004eY-SE for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:33:22 -0500 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Dec 2012 19:30:25 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id C000F357804D for ; Thu, 27 Dec 2012 20:33:17 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBR9LskJ43057402 for ; Thu, 27 Dec 2012 20:21:54 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBR9XHu7006234 for ; Thu, 27 Dec 2012 20:33:17 +1100 From: Wenchao Xia Date: Thu, 27 Dec 2012 17:31:47 +0800 Message-Id: <1356600707-8350-4-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1356600707-8350-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1356600707-8350-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V2 3/4] HMP: move define of mon_cmds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, chenwj@iis.sinica.edu.tw, armbru@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com, Wenchao Xia Because mon_cmds may use info_cmds, so adjust the declare sequence of them. Signed-off-by: Wenchao Xia --- monitor.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index e4d4c59..a392df4 100644 --- a/monitor.c +++ b/monitor.c @@ -2422,12 +2422,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[] = { { @@ -2741,6 +2735,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 */ }, -- 1.7.1