From patchwork Mon Feb 23 16:55:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 442614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 985C01400F1 for ; Tue, 24 Feb 2015 03:56:27 +1100 (AEDT) Received: from localhost ([::1]:44434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPwIz-00069h-SD for incoming@patchwork.ozlabs.org; Mon, 23 Feb 2015 11:56:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPwIH-0004oP-Pa for qemu-devel@nongnu.org; Mon, 23 Feb 2015 11:55:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPwI9-0000sB-Qm for qemu-devel@nongnu.org; Mon, 23 Feb 2015 11:55:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPwI9-0000rs-DF for qemu-devel@nongnu.org; Mon, 23 Feb 2015 11:55:33 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1NGtUVk025265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Feb 2015 11:55:30 -0500 Received: from localhost (ovpn-113-64.phx2.redhat.com [10.3.113.64]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1NGtTmO002525; Mon, 23 Feb 2015 11:55:30 -0500 From: Luiz Capitulino To: peter.maydell@linaro.org Date: Mon, 23 Feb 2015 11:55:23 -0500 Message-Id: <1424710526-21474-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1424710526-21474-1-git-send-email-lcapitulino@redhat.com> References: <1424710526-21474-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 1/4] hmp: Fix warning from smatch (wrong argument in function call) 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: Stefan Weil Fix this warning: hmp.c:414:38: warning: Using plain integer as NULL pointer qmp_query_block expects a pointer argument, so passing false is wrong. Cc: Luiz Capitulino Signed-off-by: Stefan Weil Reviewed-by: Markus Armbruster Signed-off-by: Luiz Capitulino --- hmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmp.c b/hmp.c index b47f331..7690323 100644 --- a/hmp.c +++ b/hmp.c @@ -411,7 +411,7 @@ void hmp_info_block(Monitor *mon, const QDict *qdict) /* Print BlockBackend information */ if (!nodes) { - block_list = qmp_query_block(false); + block_list = qmp_query_block(NULL); } else { block_list = NULL; }