libiscsi: Reduce the size of struct iscsi_context
Reduce the size of struct iscsi_context by reordering the members of this data structure. Additionally, change the rdma_ack_timeout value from 'unsigned char' into 'uint8_t' to make it clear that this variable represents an integer. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -830,7 +830,7 @@ void iscsi_set_rdma_ack_timetout(struct iscsi_context *iscsi, unsigned char valu
|
||||
*/
|
||||
int iser_rdma_set_option(struct rdma_cm_id *cma_id, struct iscsi_context *iscsi) {
|
||||
int ret = 0;
|
||||
unsigned char timeout = iscsi->rdma_ack_timeout;
|
||||
uint8_t timeout = iscsi->rdma_ack_timeout;
|
||||
|
||||
if (timeout) {
|
||||
#ifdef HAVE_RDMA_ACK_TIMEOUT
|
||||
|
||||
Reference in New Issue
Block a user