From patchwork Wed May 19 20:53:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riccardo Magliocchetti X-Patchwork-Id: 53023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B3310B7D28 for ; Thu, 20 May 2010 06:55:35 +1000 (EST) Received: from localhost ([127.0.0.1]:56835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEqIe-0001S8-58 for incoming@patchwork.ozlabs.org; Wed, 19 May 2010 16:55:32 -0400 Received: from [140.186.70.92] (port=38283 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEqHC-0000rJ-PI for qemu-devel@nongnu.org; Wed, 19 May 2010 16:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEqHB-0004j7-80 for qemu-devel@nongnu.org; Wed, 19 May 2010 16:54:02 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:50568) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEqHB-0004iv-3S for qemu-devel@nongnu.org; Wed, 19 May 2010 16:54:01 -0400 Received: by wye20 with SMTP id 20so207422wye.4 for ; Wed, 19 May 2010 13:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=Z1HjVPRYHaWuukEzZhPdmr4Cjp7poIqCVtNt9ViB4GQ=; b=K9ozeP9VGYmhXQp1sU4njvpLIywdfYyAKg0qDnxWdcxTIgX1DHvSI3zX05p3zqrTuu BFv4zDBoFhbMBBo3SZq8GCO+JJQoKxrAg7RQHjPTyDprYJp7DqIegmnPh1wM5hxt4iWz e+y8FSnFiRFikc+2m4/w5h0n7a1jz9EfEHBgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=sdcHU0uDrgeArEEjyLZiT8Sft6j8pCe/Gyz2XkMMD0e/RJ5zL88CXwUumriV1HDm6l HefZ0Oyj4bbwOCmE7sntdUle0czV/JU7MMQLwizNW24lF08GerHHYMpUcLSyyOlHPa35 qHwdQ5ET3wP11IrAggS0abAiqty1QZ9FdnN8I= Received: by 10.216.179.200 with SMTP id h50mr3070652wem.73.1274302438912; Wed, 19 May 2010 13:53:58 -0700 (PDT) Received: from localhost.localdomain (dynamic-adsl-78-14-62-231.clienti.tiscali.it [78.14.62.231]) by mx.google.com with ESMTPS id e82sm3349558wej.16.2010.05.19.13.53.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 May 2010 13:53:57 -0700 (PDT) From: Riccardo Magliocchetti To: qemu-devel@nongnu.org Date: Wed, 19 May 2010 22:53:44 +0200 Message-Id: <1274302424-9973-1-git-send-email-riccardo.magliocchetti@gmail.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Kevin Wolf , Riccardo Magliocchetti Subject: [Qemu-devel] [PATCH] block: Fix compilation with DEBUG defined X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org gcc does not like passing a NULL where an int value is expected: block/vvfat.c: In function ‘checkpoint’: block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes integer from pointer without a cast Signed-off-by: Riccardo Magliocchetti --- block/vvfat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index ce16bbd..13c31fa 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2865,7 +2865,7 @@ static void checkpoint(void) { return; /* avoid compiler warnings: */ hexdump(NULL, 100); - remove_mapping(vvv, NULL); + remove_mapping(vvv, 0); print_mapping(NULL); print_direntry(NULL); }