]> git.sur5r.net Git - u-boot/blobdiff - disk/part_amiga.c
dm: part: Add a cast to avoid a compiler warning
[u-boot] / disk / part_amiga.c
index 008941c53282ee4a6d99f1b8c8283293269b7e1d..5702c957827d97310f9d436c3e518c59a805637b 100644 (file)
@@ -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;