]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ufs/ffs/ffs_inode.c
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / ufs / ffs / ffs_inode.c
index 4ee62c22b1106b0d34bad0a1408dabd37c6212bb..2887b305c86338fbbe28ab9382c8c2affa0d58de 100644 (file)
@@ -84,7 +84,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,
@@ -543,7 +543,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];
@@ -569,7 +569,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];