- error = bread(vp, uio->uio_offset, NFS_DIRBLKSIZ, cred, &bp);
- n = MIN(uio->uio_resid, NFS_DIRBLKSIZ - bp->b_resid);
+ error = bread(vp, (daddr_t)uio->uio_offset, NFS_DIRBLKSIZ,
+ cred, &bp);
+ n = min(uio->uio_resid, NFS_DIRBLKSIZ - bp->b_resid);