diff options
author | bde <bde@FreeBSD.org> | 1999-01-29 07:23:53 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-29 07:23:53 +0000 |
commit | 167a4cc1135af0f3ee3854cee931d086a97b1a0b (patch) | |
tree | d21e9d6c59fd8c90c89e0ac7d2400dc088b873ee /sys/coda/coda_vnops.c | |
parent | d19f96ffcfae3de61c670a34f9fc2470b39751c1 (diff) | |
download | FreeBSD-src-167a4cc1135af0f3ee3854cee931d086a97b1a0b.zip FreeBSD-src-167a4cc1135af0f3ee3854cee931d086a97b1a0b.tar.gz |
Removed a bogus cast to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice. Here we want to convert from
`const char *' to `const char *'. Casting through c_caddr_t is
not the way to do this. The original cast to caddr_t was apparently
to break warnings about const mismatches in other versions of BSD
(in 4.4BSDLite2, the conversion is from `const char *path' to
plain caddr_t).
Diffstat (limited to 'sys/coda/coda_vnops.c')
-rw-r--r-- | sys/coda/coda_vnops.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 40f2878..efa0dda 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -27,7 +27,7 @@ * Mellon the rights to redistribute these changes without encumbrance. * * @(#) src/sys/coda/coda_vnops.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $ - * $Id: coda_vnops.c,v 1.13 1999/01/20 14:49:05 eivind Exp $ + * $Id: coda_vnops.c,v 1.14 1999/01/27 20:09:17 dillon Exp $ * */ @@ -48,6 +48,12 @@ /* * HISTORY * $Log: coda_vnops.c,v $ + * Revision 1.14 1999/01/27 20:09:17 dillon + * Fix warnings preparing for -Wall -Wcast-qual + * + * Also disable one usb module in LINT due to fatal compilation errors, + * temporary. + * * Revision 1.13 1999/01/20 14:49:05 eivind * Add 'options DEBUG_LOCKS', which stores extra information in struct * lock, and add some macros and function parameters to make sure that @@ -768,7 +774,7 @@ coda_ioctl(v) /* Should we use the name cache here? It would get it from lookupname sooner or later anyway, right? */ - NDINIT(&ndp, LOOKUP, (iap->follow ? FOLLOW : NOFOLLOW), UIO_USERSPACE, ((c_caddr_t)iap->path), p); + NDINIT(&ndp, LOOKUP, (iap->follow ? FOLLOW : NOFOLLOW), UIO_USERSPACE, iap->path, p); error = namei(&ndp); tvp = ndp.ni_vp; |