Add a cast to keep min happy.
Signed-off-by: Pete Wyckoff <[EMAIL PROTECTED]>
---
usr/mmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/mmc.c b/usr/mmc.c
index ed2f0bc..958f5b0 100644
--- a/usr/mmc.c
+++ b/usr/mmc.c
@@ -96,7 +96,7 @@ static int mmc_read_toc(int host_no, struct scsi_cmd *cmd)
}
memcpy(scsi_get_in_buffer(cmd), data,
- min(scsi_get_in_length(cmd), sizeof(buf)));
+ min(scsi_get_in_length(cmd), (uint32_t) sizeof(buf)));
scsi_set_in_resid_by_actual(cmd, data[1] + 2);
--
1.5.3.6
_______________________________________________
Stgt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/stgt-devel