X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/89b3af67bb32e691275bf6fa803d1834b2284115..21362eb3e66fd2c787aee132bce100a44d71a99c:/bsd/isofs/cd9660/cd9660_vfsops.c diff --git a/bsd/isofs/cd9660/cd9660_vfsops.c b/bsd/isofs/cd9660/cd9660_vfsops.c index 7542ca845..c2960e23b 100644 --- a/bsd/isofs/cd9660/cd9660_vfsops.c +++ b/bsd/isofs/cd9660/cd9660_vfsops.c @@ -85,6 +85,7 @@ #include #include #include +#include #include #include @@ -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