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 From: Luiz Capitulino 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> Subject: [Qemu-devel] [PULL 1/4] hmp: Fix warning from smatch (wrong argument in function call) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@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; } -- 1.9.3