Skip to content

Commit

Permalink
Correct typos in source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored and madler committed Jan 18, 2024
1 parent 01253ec commit fe41d18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/minizip/unzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ local unzFile unzOpenInternal(const void *path,
ZPOS64_T central_pos;
uLong uL;

uLong number_disk; /* number of the current dist, used for
uLong number_disk; /* number of the current disk, used for
spanning ZIP, unsupported, always 0*/
uLong number_disk_with_CD; /* number the disk with central dir, used
for spanning ZIP, unsupported, always 0*/
Expand Down
8 changes: 4 additions & 4 deletions contrib/puff/puff.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ local int fixed(struct state *s)
* provided for each of the literal/length symbols, and for each of the
* distance symbols.
*
* - If a symbol is not used in the block, this is represented by a zero as
* as the code length. This does not mean a zero-length code, but rather
* that no code should be created for this symbol. There is no way in the
* deflate format to represent a zero-length code.
* - If a symbol is not used in the block, this is represented by a zero as the
* code length. This does not mean a zero-length code, but rather that no
* code should be created for this symbol. There is no way in the deflate
* format to represent a zero-length code.
*
* - The maximum number of bits in a code is 15, so the possible lengths for
* any code are 1..15.
Expand Down
2 changes: 1 addition & 1 deletion test/minigzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static void error(const char *msg) {
#ifdef USE_MMAP /* MMAP version, Miguel Albrecht <[email protected]> */

/* Try compressing the input file at once using mmap. Return Z_OK if
* if success, Z_ERRNO otherwise.
* success, Z_ERRNO otherwise.
*/
static int gz_compress_mmap(FILE *in, gzFile out) {
int len;
Expand Down

0 comments on commit fe41d18

Please sign in to comment.