summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:07:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:07:39 +0200
commit64a278f1def5688f51ef9455a0b2a25afbec722e (patch)
tree5d8cd6850953a4cd63919895f2eac9cff4f5505f /src/fat_adv.c
parentc52e5e4d6c6fe6ff35fcb6e566df9754a0f5135f (diff)
fat_adv.c: use fat_status_t and fat_repair_t instead of int type
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 75e7a17..c427886 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -2307,8 +2307,8 @@ int FAT_init_rootdir(disk_t *disk_car, partition_t *partition, const int verbose
return 0;
}
-enum fat_status_type { FAT_UNREADABLE=0, FAT_CORRUPTED=1, FAT_OK=2 };
-enum fat_ask_repair { FAT_REPAIR_ASK=0, FAT_REPAIR_YES=1, FAT_REPAIR_NO=2 };
+typedef enum { FAT_UNREADABLE=0, FAT_CORRUPTED=1, FAT_OK=2 } fat_status_t;
+typedef enum { FAT_REPAIR_ASK=0, FAT_REPAIR_YES=1, FAT_REPAIR_NO=2 } fat_repair_t;
int repair_FAT_table(disk_t *disk_car, partition_t *partition, const int verbose, char **current_cmd)
{
@@ -2351,8 +2351,8 @@ int repair_FAT_table(disk_t *disk_car, partition_t *partition, const int verbose
return 1;
{
const unsigned int buffer_size=(partition->upart_type==UP_FAT12?2*disk_car->sector_size:disk_car->sector_size);
- unsigned int fat_status[2];
- unsigned int allow_write[2];
+ fat_status_t fat_status[2];
+ fat_repair_t allow_write[2];
unsigned int fat_history[2][3];
unsigned int old_offset_s=1234;
unsigned int fat_mismatch=0;