Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys vsize_t is not always u_long :-)



details:   https://anonhg.NetBSD.org/src/rev/7b2fccd7a717
branches:  trunk
changeset: 817715:7b2fccd7a717
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 03 12:20:58 2016 +0000

description:
vsize_t is not always u_long :-)

diffstat:

 sys/kern/kern_pax.c |  6 +++---
 sys/sys/pax.h       |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 446a66a69a56 -r 7b2fccd7a717 sys/kern/kern_pax.c
--- a/sys/kern/kern_pax.c       Sat Sep 03 12:07:41 2016 +0000
+++ b/sys/kern/kern_pax.c       Sat Sep 03 12:20:58 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_pax.c,v 1.55 2016/05/27 16:35:16 christos Exp $   */
+/*     $NetBSD: kern_pax.c,v 1.56 2016/09/03 12:20:58 christos Exp $   */
 
 /*
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_pax.c,v 1.55 2016/05/27 16:35:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_pax.c,v 1.56 2016/09/03 12:20:58 christos Exp $");
 
 #include "opt_pax.h"
 
@@ -632,7 +632,7 @@
 }
 
 void
-pax_aslr_stack(struct exec_package *epp, u_long *max_stack_size)
+pax_aslr_stack(struct exec_package *epp, vsize_t *max_stack_size)
 {
        if (!pax_aslr_epp_active(epp))
                return;
diff -r 446a66a69a56 -r 7b2fccd7a717 sys/sys/pax.h
--- a/sys/sys/pax.h     Sat Sep 03 12:07:41 2016 +0000
+++ b/sys/sys/pax.h     Sat Sep 03 12:20:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pax.h,v 1.24 2016/05/25 20:07:54 christos Exp $ */
+/* $NetBSD: pax.h,v 1.25 2016/09/03 12:20:58 christos Exp $ */
 
 /*-
  * Copyright (c) 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -88,7 +88,7 @@
 
 #ifdef PAX_ASLR
 void pax_aslr_init_vm(struct lwp *, struct vmspace *, struct exec_package *);
-void pax_aslr_stack(struct exec_package *, u_long *);
+void pax_aslr_stack(struct exec_package *, vsize_t *);
 uint32_t pax_aslr_stack_gap(struct exec_package *);
 vaddr_t pax_aslr_exec_offset(struct exec_package *, vaddr_t);
 voff_t pax_aslr_rtld_offset(struct exec_package *, vaddr_t, int);



Home | Main Index | Thread Index | Old Index