From patchwork Thu Jan 17 15:12:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 213300 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EEBFA2C0084 for ; Fri, 18 Jan 2013 02:19:34 +1100 (EST) Received: from localhost ([::1]:45715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvr9r-0005lJ-Pl for incoming@patchwork.ozlabs.org; Thu, 17 Jan 2013 10:13:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvr98-0003a2-RC for qemu-devel@nongnu.org; Thu, 17 Jan 2013 10:12:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvr94-0003Nq-3a for qemu-devel@nongnu.org; Thu, 17 Jan 2013 10:12:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvr93-0003Nk-SO for qemu-devel@nongnu.org; Thu, 17 Jan 2013 10:12:46 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0HFCjwl012162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jan 2013 10:12:45 -0500 Received: from localhost (ovpn-113-70.phx2.redhat.com [10.3.113.70]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r0HFCeNO019080; Thu, 17 Jan 2013 10:12:41 -0500 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Thu, 17 Jan 2013 13:12:29 -0200 Message-Id: <1358435550-502-5-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1358435550-502-1-git-send-email-lcapitulino@redhat.com> References: <1358435550-502-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PULL 4/5] HMP: move define of mon_cmds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Wenchao Xia Because mon_cmds may use info_cmds, so adjust the declare sequence of them. Signed-off-by: Wenchao Xia Signed-off-by: Luiz Capitulino --- monitor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index a77dd3b..ef1b7ac 100644 --- 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 */ },