> -       if (ntohl(cat_hdr.__magic) != _NLS_MAGIC)
> +       if (ntohl((uint32_t)cat_hdr.__magic) != _NLS_MAGIC)
> 
> Dare I ask how ntohl is defined on these platforms? I would have
> expected that routine integer promotions would make the argument 32
> bits wide.
> 
> If that isn't the case it might be better to adjust how ntohl is
> defined...?

Or be32toh()?
---
Izumi Tsutsui

Reply via email to