diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2021-11-25 17:07:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 17:07:44 (GMT) |
commit | 4c9431e9af596af0556e5da0ae99305bafb2b10b (patch) | |
tree | 1d0f5726d23b0f868637ef3023ed7fccc9b2eab0 /programs/lz4io.c | |
parent | db57809cf189feb2dd690d55abc2884c95c6fc00 (diff) | |
parent | 4bdfb08b95ede33d41ad4c722f039b957c0dc612 (diff) | |
download | lz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.zip lz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.tar.gz lz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.tar.bz2 |
Merge pull request #1042 from DimitriPapadopoulos/codespell
Fix typos found by codespell
Diffstat (limited to 'programs/lz4io.c')
-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; } |