Subject: Re: ntohl usage in Apple UFS code
To: Frank van der Linden <firstname.lastname@example.org>
From: Darrin B. Jewell <email@example.com>
Date: 09/30/2002 07:10:57
Frank van der Linden <firstname.lastname@example.org> writes:
> I noticed several uses of ntohl() in ffs_appleufs.c. First of all,
> these should really be be32toh(), for consistency, since it's
> not networking code.
Ok, I'll change it to use be32toh() then.
> Secondly, is Apple UFS defined to be big endian? If not, these
> need to be conditional like the rest of the FFS swap code.
Yes, Apple UFS is defined to be big endian, especially the volume
label. I will add a comment to this effect.