summaryrefslogtreecommitdiffstats
path: root/src/wbfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-15 11:24:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-15 11:24:58 +0200
commitbda2eebc0e329463a5e308e39238e58536b6b820 (patch)
tree43ef0106849fccf16ddfe51ab073a7f55d00f784 /src/wbfs.c
parent32d529ddcd6bff42e720a149c14c4ae1a7d6477c (diff)
Remove unused parameter from set_WBFS_info()
Diffstat (limited to 'src/wbfs.c')
-rw-r--r--src/wbfs.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/wbfs.c b/src/wbfs.c
index d321e89..9241f17 100644
--- a/src/wbfs.c
+++ b/src/wbfs.c
@@ -36,7 +36,12 @@
#include "wbfs.h"
static int test_WBFS(disk_t *disk, const struct wbfs_head *sb, partition_t *partition, const int dump_ind);
-static int set_WBFS_info(const struct wbfs_head *sb, partition_t *partition);
+
+static int set_WBFS_info(partition_t *partition)
+{
+ memcpy(partition->info,"WBFS",5);
+ return 0;
+}
int check_WBFS(disk_t *disk,partition_t *partition)
{
@@ -51,24 +56,18 @@ int check_WBFS(disk_t *disk,partition_t *partition)
free(buffer);
return 1;
}
- set_WBFS_info((struct wbfs_head*)buffer, partition);
+ set_WBFS_info(partition);
free(buffer);
return 0;
}
-static int set_WBFS_info(const struct wbfs_head *sb, partition_t *partition)
-{
- memcpy(partition->info,"WBFS",5);
- return 0;
-}
-
int recover_WBFS(disk_t *disk, const struct wbfs_head *sb, partition_t *partition, const int verbose, const int dump_ind)
{
if(test_WBFS(disk, sb, partition, dump_ind)!=0)
return 1;
if(partition==NULL)
return 0;
- set_WBFS_info(sb, partition);
+ set_WBFS_info(partition);
partition->part_type_i386=P_NTFS;
partition->part_size=(uint64_t)be32(sb->n_hd_sec)<<(sb->hd_sec_sz_s);
partition->blocksize=0;