summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshok Bhat2013-12-10 06:30:53 -0600
committerDavid Butcher2013-12-17 06:43:41 -0600
commit35539affd81eae1d8734a5c4f7a148108068d7fd (patch)
tree0d97ff06ba8217bef8c4a64c1e2ce29927ce1f3d
parent532f46582362f6b14d5e2a19600c2930385cdc30 (diff)
downloadplatform-system-core-35539affd81eae1d8734a5c4f7a148108068d7fd.tar.gz
platform-system-core-35539affd81eae1d8734a5c4f7a148108068d7fd.tar.xz
platform-system-core-35539affd81eae1d8734a5c4f7a148108068d7fd.zip
libdiskconfig: Use uintptr_t instead of uint32_t
Use uintptr_t instead of uint32_t when pointer is cast to an integer type. Change-Id: I03dd4c7ff66611661af466dfb7b393d461bb2d7d Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
-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 b89d382be..7641b29e2 100644
--- a/libdiskconfig/config_mbr.c
+++ b/libdiskconfig/config_mbr.c
@@ -88,7 +88,7 @@ mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
88 /* DO NOT DEREFERENCE */ 88 /* DO NOT DEREFERENCE */
89 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET; 89 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
90 /* grab the offset in mbr where to write this partition entry. */ 90 /* grab the offset in mbr where to write this partition entry. */
91 item->offset = (loff_t)((uint32_t)((uint8_t *)(&mbr->ptable[pnum]))); 91 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum])));
92 } 92 }
93 93
94 pentry = (struct pc_partition *) &item->data; 94 pentry = (struct pc_partition *) &item->data;