From: tb Date: Fri, 4 Aug 2023 09:09:52 +0000 (+0000) Subject: Sync with userland libz X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a2f0433b27cd7882e0563ec97b3fe38ec8c24e20;p=openbsd Sync with userland libz --- diff --git a/sys/lib/libz/crc32.c b/sys/lib/libz/crc32.c index 1df8e0ea205..c5828f6606e 100644 --- a/sys/lib/libz/crc32.c +++ b/sys/lib/libz/crc32.c @@ -722,8 +722,8 @@ unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, words = (z_word_t const *)buf; /* Do endian check at execution time instead of compile time, since ARM - processors can change the endianess at execution time. If the - compiler knows what the endianess will be, it can optimize out the + processors can change the endianness at execution time. If the + compiler knows what the endianness will be, it can optimize out the check and the unused branch. */ endian = 1; if (*(unsigned char *)&endian) {