summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:16:22 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:16:22 +0200
commit86b2772988185c19382ec0d755389a3c897166bf (patch)
tree2d1a6edddd2e974f194404347488c8e5dda61e39 /src
parent8e8265e705606ea2a12b97df9a958141f50360bb (diff)
turn off two gcc warnings
Diffstat (limited to 'src')
-rw-r--r--src/swap.c2
-rw-r--r--src/ufs.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index 42763d2..488142b 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -85,7 +85,7 @@ static int set_Linux_SWAP_info(const union swap_header *swap_header,partition_t
case UP_LINSWAP2_8KBE:
partition->blocksize=8192;
snprintf(partition->info, sizeof(partition->info), "SWAP2 version %u, pagesize=%u",
- be32(swap_header->info.version), partition->blocksize);
+ (unsigned int)be32(swap_header->info.version), partition->blocksize);
break;
default:
partition->info[0]='\0';
diff --git a/src/ufs.c b/src/ufs.c
index b0b1c9a..feae02c 100644
--- a/src/ufs.c
+++ b/src/ufs.c
@@ -140,6 +140,8 @@ int recover_ufs(disk_t *disk_car, const struct ufs_super_block *sb, partition_t
log_info("fs_size %lu, fs_fsize %lu\n", (long unsigned)be64(sb->fs_u11.fs_u2.fs_size), (long unsigned)be32(sb->fs_fsize));
}
break;
+ default: /* BUG if hit*/
+ break;
}
set_ufs_info(sb, partition);