Received: from [140.186.70.92] (port=33348 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF5XF-0000pB-G0 for qemu-devel@nongnu.org; Thu, 20 May 2010 09:11:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF5X1-00074Q-W1 for qemu-devel@nongnu.org; Thu, 20 May 2010 09:11:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57461) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF5X1-00074A-NK for qemu-devel@nongnu.org; Thu, 20 May 2010 09:11:23 -0400 From: Kevin Wolf Date: Thu, 20 May 2010 15:10:42 +0200 Message-Id: <1274361043-25862-8-git-send-email-kwolf@redhat.com> In-Reply-To: <1274361043-25862-1-git-send-email-kwolf@redhat.com> References: <1274361043-25862-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 7/8] vvfat: Fix compilation with DEBUG defined List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Riccardo Magliocchetti gcc does not like passing a NULL where an int value is expected: block/vvfat.c: In function =E2=80=98checkpoint=E2=80=99: block/vvfat.c:2868: error: passing argument 2 of =E2=80=98remove_mapping=E2= =80=99 makes integer from pointer without a cast Signed-off-by: Riccardo Magliocchetti Signed-off-by: Kevin Wolf --- 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); } --=20 1.6.6.1