From: Riccardo Magliocchetti Date: Wed, 19 May 2010 20:53:44 +0000 (+0200) Subject: vvfat: Fix compilation with DEBUG defined X-Git-Tag: v0.13.0-rc0~439^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=792b45b142e6b901e1de20886bc3369211582b8c;p=thirdparty%2Fqemu.git vvfat: Fix compilation with DEBUG defined 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 Signed-off-by: Kevin Wolf --- diff --git a/block/vvfat.c b/block/vvfat.c index ce16bbd8c49..13c31fadd94 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); }