sim-card
/
qemu
Archived
10
0
Fork 0

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>
This commit is contained in:
Riccardo Magliocchetti 2010-05-19 22:53:44 +02:00 committed by Kevin Wolf
parent 396759ad4a
commit 792b45b142
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}