Skip to content

Commit

Permalink
dm: part: Add a cast to avoid a compiler warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Stephen Warren <[email protected]>
  • Loading branch information
sjg20 committed Mar 14, 2016
1 parent e35929e commit 95a6f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk/part_amiga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95a6f9d

Please sign in to comment.