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:
Bart Van Assche
2020-03-07 12:32:35 -08:00
parent 6ed1ffb7b2
commit bac94c18b8
3 changed files with 4 additions and 5 deletions

View File

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