summaryrefslogtreecommitdiffstats
path: root/src/swap.c
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/swap.c
parent8e8265e705606ea2a12b97df9a958141f50360bb (diff)
turn off two gcc warnings
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c2
1 files changed, 1 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';