summaryrefslogtreecommitdiffstats
path: root/src/exfat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:06:47 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:06:47 +0200
commitc52e5e4d6c6fe6ff35fcb6e566df9754a0f5135f (patch)
tree1e8bce6615643659e8188d1b0ae0c33fba34588d /src/exfat_dir.c
parent17b794722397884e41daa6fa223d8e074e9e4239 (diff)
exfat_dir.c: use exfat_method_t instead of int type
Diffstat (limited to 'src/exfat_dir.c')
-rw-r--r--src/exfat_dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exfat_dir.c b/src/exfat_dir.c
index 6d55df7..e012f08 100644
--- a/src/exfat_dir.c
+++ b/src/exfat_dir.c
@@ -151,7 +151,7 @@ static int dir_exfat_aux(const unsigned char*buffer, const unsigned int size, co
return 0;
}
-enum {exFAT_FOLLOW_CLUSTER, exFAT_NEXT_FREE_CLUSTER, exFAT_NEXT_CLUSTER};
+typedef enum {exFAT_FOLLOW_CLUSTER, exFAT_NEXT_FREE_CLUSTER, exFAT_NEXT_CLUSTER} exfat_method_t;
static int is_EOC(const unsigned int cluster)
{
@@ -169,7 +169,7 @@ static int exfat_dir(disk_t *disk, const partition_t *partition, dir_data_t *dir
unsigned int nbr_cluster;
unsigned int clus_blocknr;
unsigned int total_clusters;
- unsigned int exfat_meth=exFAT_FOLLOW_CLUSTER;
+ exfat_method_t exfat_meth=exFAT_FOLLOW_CLUSTER;
int stop=0;
if(first_cluster<2)
cluster=le32(exfat_header->rootdir_clusnr);
@@ -290,7 +290,7 @@ static int exfat_copy(disk_t *disk, const partition_t *partition, dir_data_t *di
unsigned char *buffer_file=(unsigned char *)MALLOC(1<<cluster_shift);
unsigned int cluster;
uint64_t file_size=file->st_size;
- unsigned int exfat_meth=exFAT_FOLLOW_CLUSTER;
+ exfat_method_t exfat_meth=exFAT_FOLLOW_CLUSTER;
uint64_t start_exfat1,clus_blocknr;
unsigned long int total_clusters;
f_out=fopen_local(&new_file, dir_data->local_dir, dir_data->current_directory);