diff options
author | imp <imp@FreeBSD.org> | 1999-03-02 05:31:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-03-02 05:31:47 +0000 |
commit | f86ebee5a71b73933ccd7a7f52876d3e5b25278f (patch) | |
tree | 2f4306be0470a471af27074cb4ae23c5ecbaf9d2 /sys/ufs | |
parent | 0909dd46f23a09222d7e523f8c663f0f281339ad (diff) | |
download | FreeBSD-src-f86ebee5a71b73933ccd7a7f52876d3e5b25278f.zip FreeBSD-src-f86ebee5a71b73933ccd7a7f52876d3e5b25278f.tar.gz |
Merge patch to ufs_vnops.c's ufs_rename to the copy of ufs_rename that
lives in ext2_vnops.c for ext2fs. Also remove cast from comparision.
Bruce pointed out that it was bogus since we'd force a signed
comparision when we really wanted an unsigned comparison.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 98a8ccb..961ad49 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95 - * $Id: ufs_vnops.c,v 1.109 1999/02/25 09:52:46 imp Exp $ + * $Id: ufs_vnops.c,v 1.110 1999/02/26 05:34:16 imp Exp $ */ #include "opt_quota.h" @@ -978,7 +978,7 @@ abortit: goto abortit; dp = VTOI(fdvp); ip = VTOI(fvp); - if ((nlink_t) ip->i_nlink >= LINK_MAX) { + if (ip->i_nlink >= LINK_MAX) { VOP_UNLOCK(fvp, 0, p); error = EMLINK; goto abortit; |