Re: [PATCH] KEYS: trusted: fix type warnings in ntohl/nthos

From: Jarkko Sakkinen
Date: Wed Dec 18 2019 - 15:00:40 EST


On Tue, 2019-12-17 at 11:09 +0000, Ben Dooks (Codethink) wrote:
> The ntohl takes a __be32 and ntohs takes __be16, so cast to
> those types before passing it to the byte swapping functions.

Thanks!

> Note, would be32_to_cpu and be16_to_cpu be better here?

Yes, I think that should work too.

/Jarkko