diff options
author | bde <bde@FreeBSD.org> | 1997-12-19 23:18:37 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-19 23:18:37 +0000 |
commit | 22c38e9fe83b2a9cae2a8fe28761f27b8abc9825 (patch) | |
tree | dd8bd21eee790e8b0f142a0178e7371213174e37 /sys/kern/vfs_cache.c | |
parent | 1dee0886bd61cb692c54d74dd356b40398a7bd65 (diff) | |
download | FreeBSD-src-22c38e9fe83b2a9cae2a8fe28761f27b8abc9825.zip FreeBSD-src-22c38e9fe83b2a9cae2a8fe28761f27b8abc9825.tar.gz |
Removed some bogus casts.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index ec72155..10a0ba1 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95 - * $Id: vfs_cache.c,v 1.35 1997/10/16 10:47:54 phk Exp $ + * $Id: vfs_cache.c,v 1.36 1997/11/07 08:53:05 phk Exp $ */ #include <sys/param.h> @@ -186,7 +186,7 @@ cache_lookup(dvp, vpp, cnp) LIST_FOREACH(ncp, (NCHHASH(dvp, cnp)), nc_hash) { numchecks++; if (ncp->nc_dvp == dvp && ncp->nc_nlen == cnp->cn_namelen && - !bcmp(ncp->nc_name, cnp->cn_nameptr, (u_int)ncp->nc_nlen)) + !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) break; } @@ -290,7 +290,7 @@ cache_enter(dvp, vp, cnp) ncp->nc_vp = vp; ncp->nc_dvp = dvp; ncp->nc_nlen = cnp->cn_namelen; - bcopy(cnp->cn_nameptr, ncp->nc_name, (unsigned)ncp->nc_nlen); + bcopy(cnp->cn_nameptr, ncp->nc_name, ncp->nc_nlen); ncpp = NCHHASH(dvp, cnp); LIST_INSERT_HEAD(ncpp, ncp, nc_hash); if (LIST_EMPTY(&dvp->v_cache_src)) |