From patchwork Wed May 19 20:53:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: block: Fix compilation with DEBUG defined X-Patchwork-Submitter: Riccardo Magliocchetti X-Patchwork-Id: 53023 Message-Id: <1274302424-9973-1-git-send-email-riccardo.magliocchetti@gmail.com> To: qemu-devel@nongnu.org Cc: Kevin Wolf , Riccardo Magliocchetti Date: Wed, 19 May 2010 22:53:44 +0200 From: Riccardo Magliocchetti List-Id: qemu-devel.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); }