Now sets the magic value in the check_control structure.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3382 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-05-29 01:04:22 +00:00
parent c3f10b4674
commit 58453f3bbb
2 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,7 @@ main(int argc, char **argv)
return -1;
}
control.magic = BFS_IOCTL_CHECK_MAGIC;
control.flags = BFS_FIX_BITMAP_ERRORS;
while (*++argv)

View File

@ -28,6 +28,7 @@ do_chkbfs(int argc, char **argv)
}
memset(&result, 0, sizeof(result));
result.magic = BFS_IOCTL_CHECK_MAGIC;
result.flags = argc > 1 ? BFS_FIX_BITMAP_ERRORS : 0;
if (argc > 2) {
printf("will fix any severe errors!\n");