diff options
author | alex <alex@FreeBSD.org> | 1996-10-20 21:01:46 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1996-10-20 21:01:46 +0000 |
commit | 0392fde42645c8d1db15c97f3b45d1faa9f96b1c (patch) | |
tree | 9e9e352bf55c616f4a266ef0732a245395630b5f /sys/isofs/cd9660/cd9660_vnops.c | |
parent | 9e76d64e1d5c1e618144b687f91e94298dcfb88f (diff) | |
download | FreeBSD-src-0392fde42645c8d1db15c97f3b45d1faa9f96b1c.zip FreeBSD-src-0392fde42645c8d1db15c97f3b45d1faa9f96b1c.tar.gz |
Fix signed/unsigned comparison warnings.
Reviewed by: bde
Diffstat (limited to 'sys/isofs/cd9660/cd9660_vnops.c')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vnops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index c78d7e5..8ac9cd4 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_vnops.c 8.3 (Berkeley) 1/23/94 - * $Id: cd9660_vnops.c,v 1.25 1996/05/02 10:43:14 phk Exp $ + * $Id: cd9660_vnops.c,v 1.26 1996/09/20 05:51:12 nate Exp $ */ #include <sys/param.h> @@ -157,11 +157,11 @@ cd9660_setattr(ap) struct vnode *vp = ap->a_vp; struct vattr *vap = ap->a_vap; - if (vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL || + if (vap->va_flags != (u_long)VNOVAL || vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) return (EROFS); - if (vap->va_size != VNOVAL) { + if (vap->va_size != (u_quad_t)VNOVAL) { switch (vp->v_type) { case VDIR: return (EISDIR); @@ -797,7 +797,7 @@ cd9660_readlink(ap) * 1: Check not cross boundary on block */ if ((ip->i_number & imp->im_bmask) + isonum_711(dirp->length) - > imp->logical_block_size) { + > (unsigned)imp->logical_block_size) { brelse(bp); return EINVAL; } |