Fix header in wbfs.h

This commit is contained in:
Christophe Grenier 2012-01-16 21:11:22 +01:00
parent e4b9ab19fe
commit 0fa2eaf52d

View file

@ -27,7 +27,7 @@ extern "C" {
#endif
#define WBFS_MAGIC (('W'<<24)|('B'<<16)|('F'<<8)|('S'))
typedef struct wbfs_head
struct wbfs_head
{
uint32_t magic;
// parameters copied in the partition for easy dumping, and bug reports
@ -36,7 +36,7 @@ typedef struct wbfs_head
uint8_t wbfs_sec_sz_s; // size of a wbfs sec
uint8_t padding3[2];
uint8_t disc_table[0]; // size depends on hd sector size
}__attribute((packed)) wbfs_head_t ;
} __attribute__ ((__packed__));
int check_WBFS(disk_t *disk,partition_t *partition);
int recover_WBFS(disk_t *disk, const struct wbfs_head *sb, partition_t *partition, const int verbose, const int dump_ind);