Skip to content

Commit fe41d18

Browse files
DimitriPapadopoulosmadler
authored andcommitted
Correct typos in source code.
1 parent 01253ec commit fe41d18

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contrib/minizip/unzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ local unzFile unzOpenInternal(const void *path,
497497
ZPOS64_T central_pos;
498498
uLong uL;
499499

500-
uLong number_disk; /* number of the current dist, used for
500+
uLong number_disk; /* number of the current disk, used for
501501
spanning ZIP, unsupported, always 0*/
502502
uLong number_disk_with_CD; /* number the disk with central dir, used
503503
for spanning ZIP, unsupported, always 0*/

contrib/puff/puff.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ local int fixed(struct state *s)
593593
* provided for each of the literal/length symbols, and for each of the
594594
* distance symbols.
595595
*
596-
* - If a symbol is not used in the block, this is represented by a zero as
597-
* as the code length. This does not mean a zero-length code, but rather
598-
* that no code should be created for this symbol. There is no way in the
599-
* deflate format to represent a zero-length code.
596+
* - If a symbol is not used in the block, this is represented by a zero as the
597+
* code length. This does not mean a zero-length code, but rather that no
598+
* code should be created for this symbol. There is no way in the deflate
599+
* format to represent a zero-length code.
600600
*
601601
* - The maximum number of bits in a code is 15, so the possible lengths for
602602
* any code are 1..15.

test/minigzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static void error(const char *msg) {
303303
#ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */
304304

305305
/* Try compressing the input file at once using mmap. Return Z_OK if
306-
* if success, Z_ERRNO otherwise.
306+
* success, Z_ERRNO otherwise.
307307
*/
308308
static int gz_compress_mmap(FILE *in, gzFile out) {
309309
int len;

0 commit comments

Comments
 (0)