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 /programs | |
parent | db57809cf189feb2dd690d55abc2884c95c6fc00 (diff) | |
download | lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.zip lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.tar.gz lz4-4bdfb08b95ede33d41ad4c722f039b957c0dc612.tar.bz2 |
Fix typos found by codespell
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 2d69d6c..c01374b 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -377,7 +377,7 @@ static FILE* LZ4IO_openDstFile(const char* dstFileName, const LZ4IO_prefs_t* con * Legacy Compression ***************************************/ -/* unoptimized version; solves endianess & alignment issues */ +/* unoptimized version; solves endianness & alignment issues */ static void LZ4IO_writeLE32 (void* p, unsigned value32) { unsigned char* const dstPtr = (unsigned char*)p; @@ -1387,7 +1387,7 @@ static const char * LZ4IO_frameTypeNames[] = {"LZ4Frame", "LegacyFrame", "Skippa /* Read block headers and skip block data Return total blocks size for this frame including block headers, block checksums and content checksums. - returns 0 in case it can't succesfully skip block data. + returns 0 in case it can't successfully skip block data. Assumes SEEK_CUR after frame header. */ static unsigned long long @@ -1427,7 +1427,7 @@ LZ4IO_skipBlocksData(FILE* finput, /* For legacy frames only. Read block headers and skip block data. Return total blocks size for this frame including block headers. - or 0 in case it can't succesfully skip block data. + or 0 in case it can't successfully skip block data. This works as long as legacy block header size = magic number size. Assumes SEEK_CUR after frame header. */ @@ -1445,7 +1445,7 @@ static unsigned long long LZ4IO_skipLegacyBlocksData(FILE* finput) if ( nextCBlockSize == LEGACY_MAGICNUMBER || nextCBlockSize == LZ4IO_MAGICNUMBER || LZ4IO_isSkippableMagicNumber(nextCBlockSize)) { - /* Rewind back. we want cursor at the begining of next frame.*/ + /* Rewind back. we want cursor at the beginning of next frame.*/ if (fseek(finput, -LZIO_LEGACY_BLOCK_HEADER_SIZE, SEEK_CUR) != 0) { return 0; } |