summaryrefslogtreecommitdiffstats
path: root/src/xfs.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/xfs.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/xfs.c')
-rw-r--r--src/xfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xfs.c b/src/xfs.c
index e575f18..5b73d48 100644
--- a/src/xfs.c
+++ b/src/xfs.c
@@ -38,8 +38,8 @@
#include "log.h"
#include "guid_cpy.h"
-static int set_xfs_info(const disk_t *disk_car, const struct xfs_sb *sb,partition_t *partition, const int verbose, const int dump_ind);
-static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb,partition_t *partition,const int verbose, const int dump_ind);
+static int set_xfs_info(const struct xfs_sb *sb, partition_t *partition);
+static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb, partition_t *partition, const int verbose);
int check_xfs(disk_t *disk_car,partition_t *partition,const int verbose)
{
@@ -49,17 +49,17 @@ int check_xfs(disk_t *disk_car,partition_t *partition,const int verbose)
free(buffer);
return 1;
}
- if(test_xfs(disk_car,(struct xfs_sb*)buffer,partition,verbose,0)!=0)
+ if(test_xfs(disk_car, (struct xfs_sb*)buffer, partition, verbose)!=0)
{
free(buffer);
return 1;
}
- set_xfs_info(disk_car,(struct xfs_sb*)buffer,partition,verbose,0);
+ set_xfs_info((struct xfs_sb*)buffer, partition);
free(buffer);
return 0;
}
-static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb,partition_t *partition,const int verbose, const int dump_ind)
+static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb, partition_t *partition, const int verbose)
{
if (sb->sb_magicnum==be32(XFS_SB_MAGIC))
{
@@ -92,7 +92,7 @@ static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb,partition_t
int recover_xfs(disk_t *disk_car, const struct xfs_sb *sb,partition_t *partition,const int verbose, const int dump_ind)
{
- if(test_xfs(disk_car,sb,partition,verbose,dump_ind)!=0)
+ if(test_xfs(disk_car, sb, partition, verbose)!=0)
return 1;
if(verbose>0 || dump_ind!=0)
{
@@ -108,12 +108,12 @@ int recover_xfs(disk_t *disk_car, const struct xfs_sb *sb,partition_t *partition
partition->part_type_mac=PMAC_LINUX;
partition->part_type_sun=PSUN_LINUX;
partition->part_type_gpt=GPT_ENT_TYPE_LINUX_DATA;
- set_xfs_info(disk_car,sb,partition,verbose,dump_ind);
+ set_xfs_info(sb, partition);
guid_cpy(&partition->part_uuid, (const efi_guid_t *)&sb->sb_uuid);
return 0;
}
-static int set_xfs_info(const disk_t *disk_car,const struct xfs_sb *sb,partition_t *partition, const int verbose, const int dump_ind)
+static int set_xfs_info(const struct xfs_sb *sb, partition_t *partition)
{
partition->fsname[0]='\0';
partition->info[0]='\0';