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