svn commit: r226353 - head/sys/compat/freebsd32

Marcel Moolenaar marcel at FreeBSD.org
Thu Oct 13 22:33:04 UTC 2011


Author: marcel
Date: Thu Oct 13 22:33:03 2011
New Revision: 226353
URL: http://svn.freebsd.org/changeset/base/226353

Log:
  Use PTRIN().

Modified:
  head/sys/compat/freebsd32/freebsd32_misc.c

Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c	Thu Oct 13 21:41:54 2011	(r226352)
+++ head/sys/compat/freebsd32/freebsd32_misc.c	Thu Oct 13 22:33:03 2011	(r226353)
@@ -441,7 +441,7 @@ freebsd32_mprotect(struct thread *td, st
 {
 	struct mprotect_args ap;
 
-	ap.addr = (void *)(uintptr_t)uap->addr;
+	ap.addr = PTRIN(uap->addr);
 	ap.len = uap->len;
 	ap.prot = uap->prot;
 #if defined(__amd64__) || defined(__ia64__)


More information about the svn-src-all mailing list