summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:45 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commit95a6f9dfcbeb612564a014ccb135ae4e1e4fc942 (patch)
treeb7900d7d2d5bca5c09cbe73d8192a440332af63f /disk
parente35929e4a1ffe861f2f45e107986568c56c4f077 (diff)
downloadu-boot-95a6f9dfcbeb612564a014ccb135ae4e1e4fc942.tar.gz
u-boot-95a6f9dfcbeb612564a014ccb135ae4e1e4fc942.tar.bz2
u-boot-95a6f9dfcbeb612564a014ccb135ae4e1e4fc942.zip
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'disk')
-rw-r--r--disk/part_amiga.c2
1 files changed, 1 insertions, 1 deletions
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;