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

stackgap_alloc()
This commit is contained in:
jdolecek 2000-11-20 20:23:07 +00:00
parent e12f731db5
commit bc146d0eb0
2 changed files with 5 additions and 5 deletions

View File

@ -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 @@ emul_flags_translate(const struct emul_flags_xtab *tab,
caddr_t
stackgap_init(e)
struct emul *e;
const struct emul *e;
{
struct proc *p = curproc; /* XXX */
@ -250,7 +250,7 @@ stackgap_alloc(sgp, sz)
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);

View File

@ -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 @@ struct emul_flags_xtab {
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 *,