changeset 10973:6969e719525a

6882718 in-kernel simple L3/L4 load balancing service should be provided in Solaris (fix lint)
author Sangeeta Misra <Sangeeta.Misra@Sun.COM>
date Thu, 05 Nov 2009 17:39:24 -0800
parents 807794d41b3a
children 32d689ba6466
files usr/src/uts/common/inet/ilb/ilb.c usr/src/uts/common/inet/ilb/ilb_conn.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/inet/ilb/ilb.c	Thu Nov 05 16:04:34 2009 -0800
+++ b/usr/src/uts/common/inet/ilb/ilb.c	Thu Nov 05 17:39:24 2009 -0800
@@ -2096,7 +2096,8 @@
 	ilbs->ilbs_sticky_list_cur = 0;
 	ilbs->ilbs_sticky_list_curp = NULL;
 
-	(void) snprintf(tq_name, sizeof (tq_name), "ilb_rule_taskq_%p", ns);
+	(void) snprintf(tq_name, sizeof (tq_name), "ilb_rule_taskq_%p",
+	    (void *)ns);
 	ilbs->ilbs_rule_taskq = taskq_create(tq_name, ILB_RULE_TASKQ_NUM_THR,
 	    minclsyspri, 1, INT_MAX, TASKQ_PREPOPULATE|TASKQ_DYNAMIC);
 
--- a/usr/src/uts/common/inet/ilb/ilb_conn.c	Thu Nov 05 16:04:34 2009 -0800
+++ b/usr/src/uts/common/inet/ilb/ilb_conn.c	Thu Nov 05 17:39:24 2009 -0800
@@ -330,7 +330,7 @@
 		ilb_conn_cache_init();
 
 	(void) snprintf(tq_name, sizeof (tq_name), "ilb_conn_taskq_%p",
-	    ilbs->ilbs_netstack);
+	    (void *)ilbs->ilbs_netstack);
 	ASSERT(ilbs->ilbs_conn_taskq == NULL);
 	ilbs->ilbs_conn_taskq = taskq_create(tq_name,
 	    ilb_conn_timer_size * 2, minclsyspri, ilb_conn_timer_size,
@@ -1381,7 +1381,7 @@
 		ilb_sticky_cache_init();
 
 	(void) snprintf(tq_name, sizeof (tq_name), "ilb_sticky_taskq_%p",
-	    ilbs->ilbs_netstack);
+	    (void *)ilbs->ilbs_netstack);
 	ASSERT(ilbs->ilbs_sticky_taskq == NULL);
 	ilbs->ilbs_sticky_taskq = taskq_create(tq_name,
 	    ilb_sticky_timer_size * 2, minclsyspri, ilb_sticky_timer_size,