changed iscsi_data.size from int to size_t
iscsi_data.size is used as parameter to memory operation functions (such as malloc) which except size_t rather than int. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -573,7 +573,7 @@ iscsi_task_mgmt_target_cold_reset_async(struct iscsi_context *iscsi,
|
||||
*/
|
||||
|
||||
struct iscsi_data {
|
||||
int size;
|
||||
size_t size;
|
||||
unsigned char *data;
|
||||
};
|
||||
|
||||
|
||||
@@ -753,8 +753,8 @@ iscsi_queue_pdu(struct iscsi_context *iscsi, struct iscsi_pdu *pdu)
|
||||
unsigned long crc;
|
||||
|
||||
if (pdu->outdata.size < ISCSI_RAW_HEADER_SIZE + 4) {
|
||||
iscsi_set_error(iscsi, "PDU too small (%d) to contain header digest",
|
||||
pdu->outdata.size);
|
||||
iscsi_set_error(iscsi, "PDU too small (%u) to contain header digest",
|
||||
(unsigned int) pdu->outdata.size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user