Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2010 09:55:51 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207363 - head/sys/kern
Message-ID:  <201004290955.o3T9tpFt012486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Apr 29 09:55:51 2010
New Revision: 207363
URL: http://svn.freebsd.org/changeset/base/207363

Log:
  Remove caddr_t casts.
  
  Requested by:	bde
  MFC after:	10 days

Modified:
  head/sys/kern/kern_proc.c

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c	Thu Apr 29 09:18:36 2010	(r207362)
+++ head/sys/kern/kern_proc.c	Thu Apr 29 09:55:51 2010	(r207363)
@@ -1084,11 +1084,9 @@ sysctl_out_proc_copyout(struct kinfo_pro
 
 	if (req->flags & SCTL_MASK32) {
 		freebsd32_kinfo_proc_out(ki, &ki32);
-		error = SYSCTL_OUT(req, (caddr_t)&ki32,
-		    sizeof(struct kinfo_proc32));
+		error = SYSCTL_OUT(req, &ki32, sizeof(struct kinfo_proc32));
 	} else
-		error = SYSCTL_OUT(req, (caddr_t)ki,
-		    sizeof(struct kinfo_proc));
+		error = SYSCTL_OUT(req, ki, sizeof(struct kinfo_proc));
 	return (error);
 }
 #else
@@ -1096,7 +1094,7 @@ static int
 sysctl_out_proc_copyout(struct kinfo_proc *ki, struct sysctl_req *req)
 {
 
-	return (SYSCTL_OUT(req, (caddr_t)ki, sizeof(struct kinfo_proc)));
+	return (SYSCTL_OUT(req, ki, sizeof(struct kinfo_proc)));
 }
 #endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004290955.o3T9tpFt012486>