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