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:
Peter Lieven
2013-01-28 09:36:00 +01:00
parent 7e46a5a337
commit 8bc0046f51
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
};

View File

@@ -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;
}