From fd74051670a65f7e8eae2f5f9f2dd4cf865071ef Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 9 Feb 1999 20:16:08 +0000 Subject: [PATCH] char * and char ** -> const char * and const char ** --- sys/compat/common/compat_util.c | 8 ++++---- sys/compat/common/compat_util.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/compat/common/compat_util.c b/sys/compat/common/compat_util.c index 5cf6ab290c82..a94c86190a05 100644 --- a/sys/compat/common/compat_util.c +++ b/sys/compat/common/compat_util.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_util.c,v 1.9 1998/10/03 15:48:38 fvdl Exp $ */ +/* $NetBSD: compat_util.c,v 1.10 1999/02/09 20:16:08 christos Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -68,8 +68,8 @@ emul_find(p, sgp, prefix, path, pbuf, cflag) struct proc *p; caddr_t *sgp; /* Pointer to stackgap memory */ const char *prefix; - char *path; - char **pbuf; + const char *path; + const char **pbuf; int cflag; { struct nameidata nd; @@ -162,7 +162,7 @@ emul_find(p, sgp, prefix, path, pbuf, cflag) else { sz = &ptr[len] - buf; *pbuf = stackgap_alloc(sgp, sz + 1); - error = copyout(buf, *pbuf, sz); + error = copyout(buf, (void *)*pbuf, sz); free(buf, M_TEMP); } diff --git a/sys/compat/common/compat_util.h b/sys/compat/common/compat_util.h index 15674f4bc301..cf2303ed6279 100644 --- a/sys/compat/common/compat_util.h +++ b/sys/compat/common/compat_util.h @@ -1,4 +1,4 @@ -/* $NetBSD: compat_util.h,v 1.4 1998/09/05 14:50:26 christos Exp $ */ +/* $NetBSD: compat_util.h,v 1.5 1999/02/09 20:16:08 christos Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -73,8 +73,8 @@ struct proc; caddr_t stackgap_init __P((struct emul *)); void *stackgap_alloc __P((caddr_t *, size_t)); -int emul_find __P((struct proc *, caddr_t *, const char *, char *, - char **, int)); +int emul_find __P((struct proc *, caddr_t *, const char *, const char *, + const char **, int)); void compat_offseterr __P((struct vnode *, char *msg));