Blame SOURCES/0132-iscsiadm-Fix-the-compile-time-warning.patch

786c6d
From 0e6cb00eac013c270741ee2bdb9427ccc62ad705 Mon Sep 17 00:00:00 2001
786c6d
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
786c6d
Date: Mon, 24 Feb 2014 03:14:18 -0500
786c6d
Subject: [PATCH] iscsiadm: Fix the compile time warning
786c6d
786c6d
This fixes the following compile time warning message:
786c6d
786c6d
iscsiadm.c:2248: warning: passing argument 1 of 'print_host_stats' from incompatible pointer type
786c6d
786c6d
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
786c6d
---
786c6d
 usr/iscsiadm.c | 3 ++-
786c6d
 1 file changed, 2 insertions(+), 1 deletion(-)
786c6d
786c6d
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
786c6d
index 36617ab..389f4b8 100644
786c6d
--- a/usr/iscsiadm.c
786c6d
+++ b/usr/iscsiadm.c
786c6d
@@ -2245,7 +2245,8 @@ static int exec_host_stats_op(int op, int info_level, uint32_t host_no)
786c6d
 		goto exit_host_stats;
786c6d
 	}
786c6d
 
786c6d
-	print_host_stats(req_buf + sizeof(struct iscsi_uevent));
786c6d
+	print_host_stats((struct iscsi_offload_host_stats *)(req_buf +
786c6d
+			 sizeof(struct iscsi_uevent)));
786c6d
 
786c6d
 	ipc->ctldev_close();
786c6d
 
786c6d
-- 
786c6d
1.8.3.1
786c6d