Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common make const the struct emul * pointers pass...



details:   https://anonhg.NetBSD.org/src/rev/8a8033f0648b
branches:  trunk
changeset: 499467:8a8033f0648b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Nov 20 20:23:07 2000 +0000

description:
make const the struct emul * pointers passed/used in stackgap_init(),
stackgap_alloc()

diffstat:

 sys/compat/common/compat_util.c |  6 +++---
 sys/compat/common/compat_util.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7bc332f9cdd1 -r 8a8033f0648b sys/compat/common/compat_util.c
--- a/sys/compat/common/compat_util.c   Mon Nov 20 20:17:13 2000 +0000
+++ b/sys/compat/common/compat_util.c   Mon Nov 20 20:23:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_util.c,v 1.17 2000/09/28 19:05:08 eeh Exp $     */
+/*     $NetBSD: compat_util.c,v 1.18 2000/11/20 20:23:07 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -231,7 +231,7 @@
 
 caddr_t
 stackgap_init(e)
-       struct emul *e;
+       const struct emul *e;
 {
        struct proc *p = curproc;               /* XXX */
 
@@ -250,7 +250,7 @@
        void *n = (void *) *sgp;
        caddr_t nsgp;
        struct proc *p = curproc;               /* XXX */
-       struct emul *e = p->p_emul;
+       const struct emul *e = p->p_emul;
        int sigsize = e->e_esigcode - e->e_sigcode;
        
        sz = ALIGN(sz);
diff -r 7bc332f9cdd1 -r 8a8033f0648b sys/compat/common/compat_util.h
--- a/sys/compat/common/compat_util.h   Mon Nov 20 20:17:13 2000 +0000
+++ b/sys/compat/common/compat_util.h   Mon Nov 20 20:23:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_util.h,v 1.6 1999/04/24 02:56:06 cgd Exp $      */
+/*     $NetBSD: compat_util.h,v 1.7 2000/11/20 20:23:07 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
        unsigned long nval;
 };
 
-caddr_t        stackgap_init __P((struct emul *));
+caddr_t        stackgap_init __P((const struct emul *));
 void   *stackgap_alloc __P((caddr_t *, size_t));
 
 int emul_find __P((struct proc *, caddr_t *, const char *, const char *,



Home | Main Index | Thread Index | Old Index