summaryrefslogtreecommitdiffstats
path: root/src/bfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
commit5156d5b462f00da3830dc6314dd74feda37f1257 (patch)
tree85ff8a96aeab5a1cdd6054f6be8a53d12d401788 /src/bfs.c
parent4a75ec8effe3e4878e7710a1322d8ed86f059c08 (diff)
Code cleanup
Diffstat (limited to 'src/bfs.c')
-rw-r--r--src/bfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bfs.c b/src/bfs.c
index 1e5d75c..b88f368 100644
--- a/src/bfs.c
+++ b/src/bfs.c
@@ -61,7 +61,7 @@ int recover_BeFS(disk_t *disk_car, const struct disk_super_block *beos_block, pa
if(test_BeFS(disk_car,beos_block,partition,dump_ind)!=0)
return 1;
set_BeFS_info(beos_block, partition);
- partition->part_size=le64(beos_block->num_blocks) * (1<<le32(beos_block->block_shift));
+ partition->part_size=le64(beos_block->num_blocks) << le32(beos_block->block_shift);
partition->part_type_i386=(unsigned char)P_BEOS;
return 0;
}
@@ -69,7 +69,7 @@ int recover_BeFS(disk_t *disk_car, const struct disk_super_block *beos_block, pa
static int test_BeFS(disk_t *disk_car, const struct disk_super_block*beos_block,partition_t *partition, const int dump_ind)
{
if(beos_block->magic1==le32(SUPER_BLOCK_MAGIC1) &&
- beos_block->magic2==(signed)le32(SUPER_BLOCK_MAGIC2) &&
+ beos_block->magic2==le32(SUPER_BLOCK_MAGIC2) &&
beos_block->magic3==le32(SUPER_BLOCK_MAGIC3))
{
partition->upart_type=UP_BEOS;