[Stgt-devel] [PATCH] mmc: type warning

Pete Wyckoff pw
Wed Dec 26 21:44:19 CET 2007


Add a cast to keep min happy.

Signed-off-by: Pete Wyckoff <pw at osc.edu>
---
 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




More information about the stgt mailing list