]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ufs/ffs/ffs_inode.c
xnu-792.22.5.tar.gz
[apple/xnu.git] / bsd / ufs / ffs / ffs_inode.c
index bdedb24f00cec5553f4d854e41b4dc10cd1c8820..b04128754215674939911bc82cc590001c8d77a9 100644 (file)
@@ -90,7 +90,7 @@
 
 #if REV_ENDIAN_FS
 #include <ufs/ufs/ufs_byte_order.h>
-#include <architecture/byte_order.h>
+#include <libkern/OSByteOrder.h>
 #endif /* REV_ENDIAN_FS */
 
 static int ffs_indirtrunc(struct inode *, ufs_daddr_t, ufs_daddr_t,
@@ -549,7 +549,7 @@ ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp)
            i--, nlbn += factor) {
 #if    REV_ENDIAN_FS
                if (rev_endian)
-                       nb = NXSwapLong(bap[i]);
+                       nb = OSSwapInt32(bap[i]);
                else {
 #endif /* REV_ENDIAN_FS */
                        nb = bap[i];
@@ -575,7 +575,7 @@ ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp)
                last = lastbn % factor;
 #if    REV_ENDIAN_FS
                if (rev_endian)
-                       nb = NXSwapLong(bap[i]);
+                       nb = OSSwapInt32(bap[i]);
                else {
 #endif /* REV_ENDIAN_FS */
                        nb = bap[i];