diff options
author | bde <bde@FreeBSD.org> | 1996-09-03 23:17:15 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-03 23:17:15 +0000 |
commit | 9abb9299ce18cbf6414a160ab18c522a0a6c97a5 (patch) | |
tree | f1af8411ff9145df0f74e2948fd40dea2f9a67ea /sys/sys/namei.h | |
parent | 325338fe3d1d68f2d9a070bf7ae92bd79f056e31 (diff) | |
download | FreeBSD-src-9abb9299ce18cbf6414a160ab18c522a0a6c97a5.zip FreeBSD-src-9abb9299ce18cbf6414a160ab18c522a0a6c97a5.tar.gz |
Changed type of ni_dirp in `struct namei' from caddr_t to `const char *'
so that the compiler can see that it is OK to use const strings in
NDINIT(). Some emulators want to use paths of the form "/compat/foo".
Removed the casts that hid the non-problem. Didn't fix the missing
consts in syscalls.master that hid the non-problem.
Diffstat (limited to 'sys/sys/namei.h')
-rw-r--r-- | sys/sys/namei.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h index 9614909..fed2101 100644 --- a/sys/sys/namei.h +++ b/sys/sys/namei.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)namei.h 8.5 (Berkeley) 1/9/95 - * $Id: namei.h,v 1.10 1996/02/26 18:40:44 hsu Exp $ + * $Id: namei.h,v 1.10 1996/03/11 02:25:04 hsu Exp $ */ #ifndef _SYS_NAMEI_H_ @@ -46,7 +46,7 @@ struct nameidata { /* * Arguments to namei/lookup. */ - caddr_t ni_dirp; /* pathname pointer */ + const char *ni_dirp; /* pathname pointer */ enum uio_seg ni_segflg; /* location of pathname */ /* u_long ni_nameiop; namei operation */ /* u_long ni_flags; flags to namei */ |