From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttaim-0006pN-Ip for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:16:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttail-0005Ia-6V for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:16:16 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:38097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttaik-0005Hg-Ix for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:16:15 -0500 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 Jan 2013 19:11:17 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 74B5C2CE804F for ; Fri, 11 Jan 2013 20:16:08 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0B9G7DO63635622 for ; Fri, 11 Jan 2013 20:16:07 +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 r0B9G7pg014936 for ; Fri, 11 Jan 2013 20:16:08 +1100 From: Wenchao Xia Date: Fri, 11 Jan 2013 17:14:04 +0800 Message-Id: <1357895645-30359-6-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1357895645-30359-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1357895645-30359-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V5 5/6] HMP: move define of mon_cmds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Wenchao Xia , aliguori@us.ibm.com, armbru@redhat.com, chenwj@iis.sinica.edu.tw, lcapitulino@redhat.com 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 7b752a2..f6cb659 100644 --- a/monitor.c +++ b/monitor.c @@ -2425,12 +2425,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[] = { { @@ -2744,6 +2738,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