diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2023-08-06 13:56:45 +0200 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-01-17 16:43:38 -0800 |
commit | fe41d1892117fa81bd49f69b1c87d805635b853c (patch) | |
tree | 3cd9d5472ae157a81e44d835af916cb7ec852412 | |
parent | 01253ecd7e0a01d311670f2d03c61b82fc12d338 (diff) | |
download | zlib-fe41d1892117fa81bd49f69b1c87d805635b853c.tar.gz zlib-fe41d1892117fa81bd49f69b1c87d805635b853c.tar.bz2 zlib-fe41d1892117fa81bd49f69b1c87d805635b853c.zip |
Correct typos in source code.
-rw-r--r-- | contrib/minizip/unzip.c | 2 | ||||
-rw-r--r-- | contrib/puff/puff.c | 8 | ||||
-rw-r--r-- | test/minigzip.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c index d3c0cea..ea05b7d 100644 --- a/contrib/minizip/unzip.c +++ b/contrib/minizip/unzip.c | |||
@@ -497,7 +497,7 @@ local unzFile unzOpenInternal(const void *path, | |||
497 | ZPOS64_T central_pos; | 497 | ZPOS64_T central_pos; |
498 | uLong uL; | 498 | uLong uL; |
499 | 499 | ||
500 | uLong number_disk; /* number of the current dist, used for | 500 | uLong number_disk; /* number of the current disk, used for |
501 | spanning ZIP, unsupported, always 0*/ | 501 | spanning ZIP, unsupported, always 0*/ |
502 | uLong number_disk_with_CD; /* number the disk with central dir, used | 502 | uLong number_disk_with_CD; /* number the disk with central dir, used |
503 | for spanning ZIP, unsupported, always 0*/ | 503 | for spanning ZIP, unsupported, always 0*/ |
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c index 6737ff6..d759825 100644 --- a/contrib/puff/puff.c +++ b/contrib/puff/puff.c | |||
@@ -593,10 +593,10 @@ local int fixed(struct state *s) | |||
593 | * provided for each of the literal/length symbols, and for each of the | 593 | * provided for each of the literal/length symbols, and for each of the |
594 | * distance symbols. | 594 | * distance symbols. |
595 | * | 595 | * |
596 | * - If a symbol is not used in the block, this is represented by a zero as | 596 | * - If a symbol is not used in the block, this is represented by a zero as the |
597 | * as the code length. This does not mean a zero-length code, but rather | 597 | * code length. This does not mean a zero-length code, but rather that no |
598 | * that no code should be created for this symbol. There is no way in the | 598 | * code should be created for this symbol. There is no way in the deflate |
599 | * deflate format to represent a zero-length code. | 599 | * format to represent a zero-length code. |
600 | * | 600 | * |
601 | * - The maximum number of bits in a code is 15, so the possible lengths for | 601 | * - The maximum number of bits in a code is 15, so the possible lengths for |
602 | * any code are 1..15. | 602 | * any code are 1..15. |
diff --git a/test/minigzip.c b/test/minigzip.c index c72356d..134e10e 100644 --- a/test/minigzip.c +++ b/test/minigzip.c | |||
@@ -303,7 +303,7 @@ static void error(const char *msg) { | |||
303 | #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */ | 303 | #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */ |
304 | 304 | ||
305 | /* Try compressing the input file at once using mmap. Return Z_OK if | 305 | /* Try compressing the input file at once using mmap. Return Z_OK if |
306 | * if success, Z_ERRNO otherwise. | 306 | * success, Z_ERRNO otherwise. |
307 | */ | 307 | */ |
308 | static int gz_compress_mmap(FILE *in, gzFile out) { | 308 | static int gz_compress_mmap(FILE *in, gzFile out) { |
309 | int len; | 309 | int len; |