From 5369eb85cac146ad1ef22a21b6676c7496e5c080 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 2 Mar 1999 05:31:47 +0000 Subject: 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. --- sys/ufs/ufs/ufs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 98a8ccb0ebd0..961ad499beef 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; -- cgit v1.2.3