summaryrefslogtreecommitdiffstats
path: root/src/fatx.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
commit203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch)
tree022c7facc406d0eea910638c7b41355964ee8549 /src/fatx.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/fatx.c')
-rw-r--r--src/fatx.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fatx.c b/src/fatx.c
index cb6fe55..526c155 100644
--- a/src/fatx.c
+++ b/src/fatx.c
@@ -29,10 +29,10 @@
#include "types.h"
#include "common.h"
#include "fatx.h"
-static void set_FATX_info(disk_t *disk_car, const struct disk_fatx *fatx_block,partition_t *partition);
-static int test_fatx(disk_t *disk_car, const struct disk_fatx *fatx_block,partition_t *partition,const int verbose, const int dump_ind);
+static void set_FATX_info(partition_t *partition);
+static int test_fatx(const struct disk_fatx *fatx_block, partition_t *partition);
-static int test_fatx(disk_t *disk_car, const struct disk_fatx *fatx_block,partition_t *partition,const int verbose, const int dump_ind)
+static int test_fatx(const struct disk_fatx *fatx_block, partition_t *partition)
{
if(memcmp(fatx_block->magic,"FATX",4)==0)
{
@@ -42,29 +42,29 @@ static int test_fatx(disk_t *disk_car, const struct disk_fatx *fatx_block,partit
return 1;
}
-int check_FATX(disk_t *disk_car,partition_t *partition,const int verbose)
+int check_FATX(disk_t *disk_car,partition_t *partition)
{
unsigned char buffer[8*DEFAULT_SECTOR_SIZE];
if(disk_car->pread(disk_car, &buffer, sizeof(buffer), partition->part_offset) != sizeof(buffer))
{ return 1; }
- if(test_fatx(disk_car,(const struct disk_fatx *)&buffer,partition,verbose,0)!=0)
+ if(test_fatx((const struct disk_fatx *)&buffer, partition)!=0)
return 1;
- set_FATX_info(disk_car,(const struct disk_fatx *)&buffer,partition);
+ set_FATX_info(partition);
return 0;
}
-int recover_FATX(disk_t *disk_car, const struct disk_fatx *fatx_block,partition_t *partition, const int verbose, const int dump_ind)
+int recover_FATX(const struct disk_fatx *fatx_block, partition_t *partition)
{
- if(test_fatx(disk_car,fatx_block,partition,0,0)!=0)
+ if(test_fatx(fatx_block, partition)!=0)
return 1;
- set_FATX_info(disk_car,fatx_block,partition);
+ set_FATX_info(partition);
partition->part_type_xbox=PXBOX_FATX;
/* FIXME: Locate the partition but cannot get the part_size unfortunatly */
partition->part_size=(uint64_t)le32(fatx_block->cluster_size_in_sector)*512;
return 0;
}
-static void set_FATX_info(disk_t *disk_car, const struct disk_fatx *fatx_block,partition_t *partition)
+static void set_FATX_info(partition_t *partition)
{
partition->fsname[0]='\0';
strncpy(partition->info,"FATX",sizeof(partition->info));