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/compat/linux/linux_util.c | |
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/compat/linux/linux_util.c')
-rw-r--r-- | sys/compat/linux/linux_util.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index bc4efdd..7025e50 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -27,7 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * from: svr4_util.c,v 1.5 1995/01/22 23:44:50 christos Exp - * $Id: linux_util.c,v 1.1 1996/03/02 19:38:02 peter Exp $ + * $Id: linux_util.c,v 1.2 1996/08/05 20:52:30 nate Exp $ */ #include <sys/param.h> @@ -134,9 +134,8 @@ linux_emul_find(p, sgp, prefix, path, pbuf, cflag) * root directory and never finding it, because "/" resolves * to the emulation root directory. This is expensive :-( */ - /* XXX: prototype should have const here for NDINIT */ - NDINIT(&ndroot, LOOKUP, FOLLOW, UIO_SYSSPACE, - (char *) linux_emul_path, p); + NDINIT(&ndroot, LOOKUP, FOLLOW, UIO_SYSSPACE, linux_emul_path, + p); if ((error = namei(&ndroot)) != 0) { /* Cannot happen! */ |