From 76ce4aadee1a7a890001affed54a0fb1110b1793 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Wed, 18 Feb 2015 16:14:28 -0600 Subject: Support to compile in 64bit for Ubuntu Little Endian --- fpart/src/cmd_list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpart/src/cmd_list.c') diff --git a/fpart/src/cmd_list.c b/fpart/src/cmd_list.c index 7e4401f..19eee56 100644 --- a/fpart/src/cmd_list.c +++ b/fpart/src/cmd_list.c @@ -75,8 +75,8 @@ int command_list(args_t * args) int __list_entry(ffs_entry_t * entry) { - size_t offset = entry->base * __ffs->hdr->block_size; - size_t size = entry->size * __ffs->hdr->block_size; + uint32_t offset = entry->base * __ffs->hdr->block_size; + uint32_t size = entry->size * __ffs->hdr->block_size; if (__ffs_entry_name(__ffs, entry, full_name, sizeof full_name) < 0) @@ -135,7 +135,7 @@ int command_list(args_t * args) if (0 < ffs->count) { printf("========================[ PARTITION TABLE" " 0x%llx ]=======================\n", - ffs->offset); + (long long)ffs->offset); printf("vers:%04x size:%04x * blk:%06x blk(s):" "%06x * entsz:%06x ent(s):%06x\n", ffs->hdr->version, -- cgit v1.2.1