From: Simon Glass Date: Mon, 29 Feb 2016 22:25:45 +0000 (-0700) Subject: dm: part: Add a cast to avoid a compiler warning X-Git-Tag: v2016.05-rc1~420^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95a6f9dfcbeb612564a014ccb135ae4e1e4fc942;p=u-boot dm: part: Add a cast to avoid a compiler warning In part_amiga.c the name is unsigned but bcpl_strcpy() requires a signed pointer. Add a cast to fix the warning. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Tested-by: Stephen Warren --- diff --git a/disk/part_amiga.c b/disk/part_amiga.c index 008941c532..5702c95782 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;