X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8ad349bb6ed4a0be06e34c92be0d98b92e078db4..5d5c5d0d5b79ade9a973d55186ffda2638ba2b6e:/bsd/ufs/ffs/ffs_alloc.c diff --git a/bsd/ufs/ffs/ffs_alloc.c b/bsd/ufs/ffs/ffs_alloc.c index e74e7423c..f4aa9630e 100644 --- a/bsd/ufs/ffs/ffs_alloc.c +++ b/bsd/ufs/ffs/ffs_alloc.c @@ -86,7 +86,7 @@ #if REV_ENDIAN_FS #include -#include +#include #endif /* REV_ENDIAN_FS */ extern u_long nextgennumber; @@ -601,7 +601,7 @@ ffs_blkpref(ip, lbn, indx, bap) if (indx && bap) { if (rev_endian) { if (bap != &ip->i_db[0]) - prev = NXSwapLong(bap[indx - 1]); + prev = OSSwapInt32(bap[indx - 1]); else prev = bap[indx - 1]; } else prev = bap[indx - 1]; @@ -659,7 +659,7 @@ ffs_blkpref(ip, lbn, indx, bap) return (nextblk); } if (bap != &ip->i_db[0]) - prev = NXSwapLong(bap[indx - fs->fs_maxcontig]); + prev = OSSwapInt32(bap[indx - fs->fs_maxcontig]); else prev = bap[indx - fs->fs_maxcontig]; if (prev + blkstofrags(fs, fs->fs_maxcontig) != nextblk)