aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>2010-05-19 22:53:44 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-21 11:49:19 +0200
commit792b45b142e6b901e1de20886bc3369211582b8c (patch)
tree88120fa9ffe2caf8caf1f8bd59847fb8aa8148ca
parent396759ad4ad5289623eb7e1993c433ad4e7b13a1 (diff)
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 <riccardo.magliocchetti@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block/vvfat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c
index ce16bbd8c4..13c31fadd9 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);
}