mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
fcst: Change "signed" into "signed int"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user