diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-11-25 14:26:14 (GMT) |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-11-25 14:32:37 (GMT) |
commit | 4bdfb08b95ede33d41ad4c722f039b957c0dc612 (patch) | |
tree | 1d0f5726d23b0f868637ef3023ed7fccc9b2eab0 /lib | |
parent | db57809cf189feb2dd690d55abc2884c95c6fc00 (diff) | |
download | lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.zip lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.tar.gz lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.tar.bz2 |
Fix typos found by codespell
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 2 | ||||
-rw-r--r-- | lib/lz4frame.c | 2 | ||||
-rw-r--r-- | lib/lz4frame.h | 2 | ||||
-rw-r--r-- | lib/lz4hc.c | 4 | ||||
-rw-r--r-- | lib/lz4hc.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/Makefile b/lib/Makefile index 5e4c711..06503cb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -187,7 +187,7 @@ install: lib liblz4.pc $(INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h endif ifeq ($(BUILD_SHARED),yes) -# Traditionnally, one installs the DLLs in the bin directory as programs +# Traditionally, one installs the DLLs in the bin directory as programs # search them first in their directory. This allows to not pollute system # directories (like c:/windows/system32), nor modify the PATH variable. ifeq ($(WINBASED),yes) diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 9069717..73f21fc 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -143,7 +143,7 @@ static int g_debuglog_enable = 1; #endif -/* unoptimized version; solves endianess & alignment issues */ +/* unoptimized version; solves endianness & alignment issues */ static U32 LZ4F_readLE32 (const void* src) { const BYTE* const srcPtr = (const BYTE*)src; diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 9ac849f..05b8d1d 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -257,7 +257,7 @@ LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx); /*---- Compression ----*/ -#define LZ4F_HEADER_SIZE_MIN 7 /* LZ4 Frame header size can vary, depending on selected paramaters */ +#define LZ4F_HEADER_SIZE_MIN 7 /* LZ4 Frame header size can vary, depending on selected parameters */ #define LZ4F_HEADER_SIZE_MAX 19 /* Size in bytes of a block header in little-endian format. Highest bit indicates if block data is uncompressed */ diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 91fd2b0..e71ce94 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -201,7 +201,7 @@ LZ4HC_countPattern(const BYTE* ip, const BYTE* const iEnd, U32 const pattern32) /* LZ4HC_reverseCountPattern() : * pattern must be a sample of repetitive pattern of length 1, 2 or 4 (but not 3!) - * read using natural platform endianess */ + * read using natural platform endianness */ static unsigned LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern) { @@ -211,7 +211,7 @@ LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern) if (LZ4_read32(ip-4) != pattern) break; ip -= 4; } - { const BYTE* bytePtr = (const BYTE*)(&pattern) + 3; /* works for any endianess */ + { const BYTE* bytePtr = (const BYTE*)(&pattern) + 3; /* works for any endianness */ while (likely(ip>iLow)) { if (ip[-1] != *bytePtr) break; ip--; bytePtr--; diff --git a/lib/lz4hc.h b/lib/lz4hc.h index b423990..f4afc9b 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -305,7 +305,7 @@ LZ4LIB_API void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionL * They should not be linked from DLL, * as there is no guarantee of API stability yet. * Prototypes will be promoted to "stable" status - * after successfull usage in real-life scenarios. + * after successful usage in real-life scenarios. ***************************************************/ #ifdef LZ4_HC_STATIC_LINKING_ONLY /* protection macro */ #ifndef LZ4_HC_SLO_098092834 |