From fe41d1892117fa81bd49f69b1c87d805635b853c Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:56:45 +0200 Subject: [PATCH] Correct typos in source code. --- contrib/minizip/unzip.c | 2 +- contrib/puff/puff.c | 8 ++++---- test/minigzip.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c index d3c0cead7..ea05b7d62 100644 --- a/contrib/minizip/unzip.c +++ b/contrib/minizip/unzip.c @@ -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*/ diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c index 6737ff615..d759825ab 100644 --- a/contrib/puff/puff.c +++ b/contrib/puff/puff.c @@ -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. diff --git a/test/minigzip.c b/test/minigzip.c index c72356dbc..134e10e6c 100644 --- a/test/minigzip.c +++ b/test/minigzip.c @@ -303,7 +303,7 @@ static void error(const char *msg) { #ifdef USE_MMAP /* MMAP version, Miguel Albrecht */ /* 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;