summaryrefslogtreecommitdiffstats
path: root/src/wbfs.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-01-16 21:11:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-01-16 21:11:22 +0100
commit0fa2eaf52d4c5d85c872f5db2d65826c1113b8b9 (patch)
tree63491493edffa98052f58bf90cd9b89209d43633 /src/wbfs.h
parente4b9ab19fe28aa0a9195e96cf770dc3ef5519c1b (diff)
Fix header in wbfs.h
Diffstat (limited to 'src/wbfs.h')
-rw-r--r--src/wbfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wbfs.h b/src/wbfs.h
index 3f648e2..66248d7 100644
--- a/src/wbfs.h
+++ b/src/wbfs.h
@@ -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);