char * and char ** -> const char * and const char **
This commit is contained in:
parent
c95ddabf17
commit
fd74051670
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user