From: David Woodhouse Date: Tue, 18 May 2021 17:55:12 +0000 (+0100) Subject: Fix fallback/big-endian store_le16() and store_le32() X-Git-Tag: v8.20~175 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=97578bc5edf1edef1e0927ca02596ee6e9df1ff0;p=users%2Fdwmw2%2Fopenconnect.git Fix fallback/big-endian store_le16() and store_le32() These were swapped. Signed-off-by: David Woodhouse --- diff --git a/openconnect-internal.h b/openconnect-internal.h index cc4de49a..0acaa70a 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -1496,14 +1496,14 @@ static inline uint16_t load_le16(const void *_p) return p[0] | (p[1] << 8); } -static inline void store_le32(void *_p, uint32_t d) +static inline void store_le16(void *_p, uint32_t d) { unsigned char *p = _p; p[0] = d; p[1] = d >> 8; } -static inline void store_le16(void *_p, uint16_t d) +static inline void store_le32(void *_p, uint16_t d) { unsigned char *p = _p; p[0] = d;