[U-Boot] [PATCH 12/30] dm: part: Add a cast to avoid a compiler warning

Simon Glass sjg at chromium.org
Mon Feb 15 03:16:41 CET 2016


In part_amiga.c the name is unsigned by bcpl_strcpy() requires a signed
pointer. Add a cast to fix the warning.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 disk/part_amiga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk/part_amiga.c b/disk/part_amiga.c
index 008941c..5702c95 100644
--- a/disk/part_amiga.c
+++ b/disk/part_amiga.c
@@ -304,7 +304,7 @@ int get_partition_info_amiga(struct blk_desc *dev_desc, int part,
     info->start = g->low_cyl  * g->block_per_track * g->surfaces;
     info->size  = (g->high_cyl - g->low_cyl + 1) * g->block_per_track * g->surfaces - 1;
     info->blksz = rdb.block_bytes;
-    bcpl_strcpy(info->name, p->drive_name);
+    bcpl_strcpy((char *)info->name, p->drive_name);
 
 
     disk_type = g->dos_type;
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list