summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Abgrall2014-05-15 14:54:42 -0500
committerJP Abgrall2014-05-15 14:55:02 -0500
commit283540147877ca3c5f7ecb280a6b5778ab63366c (patch)
treebfd69c0b800dc138e36da031697941786c9de25e /libdiskconfig
parent5e0db82858387ba8c529a8fbc667a58b29b79706 (diff)
downloadplatform-system-core-283540147877ca3c5f7ecb280a6b5778ab63366c.tar.gz
platform-system-core-283540147877ca3c5f7ecb280a6b5778ab63366c.tar.xz
platform-system-core-283540147877ca3c5f7ecb280a6b5778ab63366c.zip
libdiskconfig: fix build (bad type in offset calculation)
Change-Id: I1acc490943f961a039acd3d40db825069b725abb Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'libdiskconfig')
-rw-r--r--libdiskconfig/config_mbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskconfig/config_mbr.c b/libdiskconfig/config_mbr.c
index 82d006622..7b6ca1c65 100644
--- a/libdiskconfig/config_mbr.c
+++ b/libdiskconfig/config_mbr.c
@@ -221,7 +221,7 @@ mk_mbr_sig()
221 /* DO NOT DEREFERENCE */ 221 /* DO NOT DEREFERENCE */
222 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET; 222 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
223 /* grab the offset in mbr where to write mbr signature. */ 223 /* grab the offset in mbr where to write mbr signature. */
224 item->offset = (loff_t)((uint32_t)((uint8_t *)(&mbr->mbr_sig))); 224 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->mbr_sig)));
225 } 225 }
226 226
227 *((uint16_t*)item->data) = PC_BIOS_BOOT_SIG; 227 *((uint16_t*)item->data) = PC_BIOS_BOOT_SIG;