changeset 10746:5944e0b7fd72

6887665 newly introduced lint warnings need to be eradicated
author Darren Reed <Darren.Reed@Sun.COM>
date Thu, 08 Oct 2009 22:14:42 -0700
parents 89bfb2b10e30
children 3e9fff3cbcc7
files usr/src/uts/common/inet/ip/ip.c usr/src/uts/common/inet/ipnet/ipnet.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/inet/ip/ip.c	Thu Oct 08 14:08:48 2009 -0700
+++ b/usr/src/uts/common/inet/ip/ip.c	Thu Oct 08 22:14:42 2009 -0700
@@ -29826,8 +29826,8 @@
 ipobs_fini(ip_stack_t *ipst)
 {
 
-	net_protocol_release(ipst->ips_ip4_observe_pr);
-	net_protocol_release(ipst->ips_ip6_observe_pr);
+	VERIFY(net_protocol_release(ipst->ips_ip4_observe_pr) == 0);
+	VERIFY(net_protocol_release(ipst->ips_ip6_observe_pr) == 0);
 }
 
 /*
--- a/usr/src/uts/common/inet/ipnet/ipnet.c	Thu Oct 08 14:08:48 2009 -0700
+++ b/usr/src/uts/common/inet/ipnet/ipnet.c	Thu Oct 08 22:14:42 2009 -0700
@@ -1985,7 +1985,7 @@
 	 * To register multiple hooks with he same callback function,
 	 * a unique name is needed.
 	 */
-	(void) snprintf(name, sizeof (name), "ipobserve_%p", hook);
+	(void) snprintf(name, sizeof (name), "ipobserve_%p", (void *)hook);
 	hook->h_name = strdup(name);
 
 	(void) net_hook_register(ipst->ips_ip4_observe_pr, NH_OBSERVE, hook);
@@ -2295,7 +2295,7 @@
 	 */
 	HOOK_INIT(ipnet->ipnet_hook, ipnet_bpf_bounce, "", ipnet);
 	(void) snprintf(name, sizeof (name), "ipnet_promisc_%p",
-	    ipnet->ipnet_hook);
+	    (void *)ipnet->ipnet_hook);
 	ipnet->ipnet_hook->h_name = strdup(name);
 	ipnet->ipnet_data = data;
 	ipnet->ipnet_zoneid = ifp->if_zoneid;