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__)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to