]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/isofs/cd9660/cd9660_vfsops.c
xnu-792.21.3.tar.gz
[apple/xnu.git] / bsd / isofs / cd9660 / cd9660_vfsops.c
index 7542ca845142dd0bb43e1bd7acb2e1b10778d862..c2960e23bbf8956dadadb0e9411c80570de7213b 100644 (file)
@@ -85,6 +85,7 @@
 #include <sys/stat.h>
 #include <sys/ubc.h>
 #include <sys/utfconv.h>
+#include <architecture/byte_order.h>
 
 #include <isofs/cd9660/iso.h>
 #include <isofs/cd9660/iso_rrip.h>
@@ -937,7 +938,7 @@ cd9660_fhtovp(mount_t mp, int fhlen, unsigned char *fhp, vnode_t *vpp, vfs_conte
               ifhp->ifid_ino, ifhp->ifid_start);
 #endif
        
-       if ( (error = VFS_VGET(mp, (ino64_t)ntohl(ifhp->ifid_ino), &nvp, context)) ) {
+       if ( (error = VFS_VGET(mp, (ino64_t)ifhp->ifid_ino, &nvp, context)) ) {
                *vpp = NULLVP;
                return (error);
        }
@@ -1597,8 +1598,8 @@ cd9660_vptofh(struct vnode *vp, int *fhlenp, unsigned char *fhp, __unused vfs_co
        
        ifhp = (struct ifid *)fhp;
        
-       ifhp->ifid_ino = htonl(ip->i_number);
-       ifhp->ifid_start = htonl(ip->iso_start);
+       ifhp->ifid_ino = ip->i_number;
+       ifhp->ifid_start = ip->iso_start;
        *fhlenp = sizeof(struct ifid);
        
 #ifdef ISOFS_DBG