summaryrefslogtreecommitdiffstats
path: root/src/ufs.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/ufs.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/ufs.c')
-rw-r--r--src/ufs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ufs.c b/src/ufs.c
index 452d40f..7c48de6 100644
--- a/src/ufs.c
+++ b/src/ufs.c
@@ -37,8 +37,8 @@
#include "fnctdsk.h"
#include "log.h"
-static int set_ufs_info(const disk_t *disk_car, const struct ufs_super_block *sb,partition_t *partition, const int verbose, const int dump_ind);
-static int test_ufs(const disk_t *disk_car, const struct ufs_super_block *sb,partition_t *partition,const int verbose, const int dump_ind);
+static int set_ufs_info(const struct ufs_super_block *sb, partition_t *partition);
+static int test_ufs(const disk_t *disk_car, const struct ufs_super_block *sb, partition_t *partition, const int verbose);
int check_ufs(disk_t *disk_car,partition_t *partition,const int verbose)
{
@@ -51,17 +51,17 @@ int check_ufs(disk_t *disk_car,partition_t *partition,const int verbose)
free(buffer);
return 1;
}
- if(test_ufs(disk_car,sb,partition,verbose,0)!=0)
+ if(test_ufs(disk_car, sb, partition, verbose)!=0)
{
free(buffer);
return 1;
}
- set_ufs_info(disk_car,sb,partition,verbose,0);
+ set_ufs_info(sb, partition);
free(buffer);
return 0;
}
-static int test_ufs(const disk_t *disk_car, const struct ufs_super_block *sb,partition_t *partition,const int verbose, const int dump_ind)
+static int test_ufs(const disk_t *disk_car, const struct ufs_super_block *sb, partition_t *partition, const int verbose)
{
if(le32(sb->fs_magic)==UFS_MAGIC && le32(sb->fs_size) > 0 &&
(le32(sb->fs_fsize)==512 || le32(sb->fs_fsize)==1024 || le32(sb->fs_fsize)==2048 || le32(sb->fs_fsize)==4096))
@@ -100,7 +100,7 @@ static int test_ufs(const disk_t *disk_car, const struct ufs_super_block *sb,par
int recover_ufs(disk_t *disk_car, const struct ufs_super_block *sb, partition_t *partition,const int verbose, const int dump_ind)
{
- if(test_ufs(disk_car,sb,partition,verbose,dump_ind)!=0)
+ if(test_ufs(disk_car, sb, partition, verbose)!=0)
return 1;
if(dump_ind!=0)
{
@@ -145,7 +145,7 @@ int recover_ufs(disk_t *disk_car, const struct ufs_super_block *sb, partition_t
break;
}
- set_ufs_info(disk_car,sb,partition,verbose,dump_ind);
+ set_ufs_info(sb, partition);
if(strcmp(partition->fsname,"/")==0)
{
partition->part_type_sun = (unsigned char)PSUN_ROOT;
@@ -174,7 +174,7 @@ int recover_ufs(disk_t *disk_car, const struct ufs_super_block *sb, partition_t
return 0;
}
-static int set_ufs_info(const disk_t *disk_car,const struct ufs_super_block *sb,partition_t *partition, const int verbose, const int dump_ind)
+static int set_ufs_info(const struct ufs_super_block *sb, partition_t *partition)
{
partition->fsname[0]='\0';
partition->info[0]='\0';