[misc] fix warnings

* MSVC x64 warnings in file.c
* Clang and MinGW warnings in badblocks
* also removed the requirement for
* also added test ID to badblocks call
This commit is contained in:
Pete Batard 2011-12-06 14:05:53 +00:00
parent e419cf9015
commit 04bf6c6b3d
8 changed files with 78 additions and 110 deletions

View file

@ -54,7 +54,14 @@ struct ext2_struct_u32_iterate {
int ptr;
};
/* Test type */
enum {
BADBLOCKS_RO, /* Read-only */
BADBLOCKS_RW, /* *DESTRUCTIVE* read-write */
BADBLOCKS_ND /* non-destructive read-write */
};
/*
* Shared prototypes
*/
BOOL BadBlocks(HANDLE hPhysicalDrive, ULONGLONG disk_size, int block_size);
int BadBlocks(HANDLE hPhysicalDrive, ULONGLONG disk_size, int block_size, int test_type);