From 4dfb9d10c7a727c8551cb42d8006b9926cb15eff Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 27 Mar 2016 15:57:41 +0000 Subject: [PATCH] fcst: Change "signed" into "signed int" git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6845 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index e0b0baa2f..adc297847 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -330,7 +330,7 @@ int ft_send_response(struct scst_cmd *cmd) * For bi-directional comands, the bi_resid is for the read direction. */ if (dir & SCST_DATA_WRITE) - resid = (signed)scst_cmd_get_bufflen(cmd) - + resid = (signed int)scst_cmd_get_bufflen(cmd) - fcmd->write_data_len; if (dir & SCST_DATA_READ) { error = ft_send_read_data(cmd); @@ -340,12 +340,12 @@ int ft_send_response(struct scst_cmd *cmd) } if (dir == SCST_DATA_BIDI) { - bi_resid = (signed)scst_cmd_get_out_bufflen(cmd) - + bi_resid = (signed int)scst_cmd_get_out_bufflen(cmd) - scst_cmd_get_resp_data_len(cmd); if (bi_resid) len += sizeof(__be32); } else - resid = (signed)scst_cmd_get_bufflen(cmd) - + resid = (signed int)scst_cmd_get_bufflen(cmd) - scst_cmd_get_resp_data_len(cmd); }