summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskconfig/config_mbr.c')
-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;