summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMark Adler <fork@madler.net>2022-08-22 13:13:06 -0700
committerMark Adler <fork@madler.net>2022-08-23 15:35:13 -0700
commit5752b171fd4cc96b8d1f9526ec1940199c6e9740 (patch)
tree7d8d7e6bf5760cca696b77e72010a497a097061a /examples
parent1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d (diff)
downloadzlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.gz
Fix some typos.
No code changes.
Diffstat (limited to 'examples')
-rw-r--r--examples/enough.c2
-rw-r--r--examples/fitblk.c4
-rw-r--r--examples/gun.c2
-rw-r--r--examples/gzappend.c4
-rw-r--r--examples/gzlog.h2
-rw-r--r--examples/zran.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/enough.c b/examples/enough.c
index 19cf08c..8a3cade 100644
--- a/examples/enough.c
+++ b/examples/enough.c
@@ -486,7 +486,7 @@ local void enough(int syms) {
// are 286, 9, and 15 respectively, for the deflate literal/length code. The
// possible codes are counted for each number of coded symbols from two to the
// maximum. The counts for each of those and the total number of codes are
-// shown. The maximum number of inflate table entires is then calculated across
+// shown. The maximum number of inflate table entries is then calculated across
// all possible codes. Each new maximum number of table entries and the
// associated sub-code (starting at root + 1 == 10 bits) is shown.
//
diff --git a/examples/fitblk.c b/examples/fitblk.c
index c61de5c..68f5680 100644
--- a/examples/fitblk.c
+++ b/examples/fitblk.c
@@ -17,7 +17,7 @@
data in order to determine how much of that input will compress to
nearly the requested output block size. The first pass generates
enough deflate blocks to produce output to fill the requested
- output size plus a specfied excess amount (see the EXCESS define
+ output size plus a specified excess amount (see the EXCESS define
below). The last deflate block may go quite a bit past that, but
is discarded. The second pass decompresses and recompresses just
the compressed data that fit in the requested plus excess sized
@@ -109,7 +109,7 @@ local int recompress(z_streamp inf, z_streamp def)
if (ret == Z_MEM_ERROR)
return ret;
- /* compress what was decompresed until done or no room */
+ /* compress what was decompressed until done or no room */
def->avail_in = RAWLEN - inf->avail_out;
def->next_in = raw;
if (inf->avail_out != 0)
diff --git a/examples/gun.c b/examples/gun.c
index be44fa5..bea5497 100644
--- a/examples/gun.c
+++ b/examples/gun.c
@@ -43,7 +43,7 @@
gun will also decompress files made by Unix compress, which uses LZW
compression. These files are automatically detected by virtue of their
magic header bytes. Since the end of Unix compress stream is marked by the
- end-of-file, they cannot be concantenated. If a Unix compress stream is
+ end-of-file, they cannot be concatenated. If a Unix compress stream is
encountered in an input file, it is the last stream in that file.
Like gunzip and uncompress, the file attributes of the original compressed
diff --git a/examples/gzappend.c b/examples/gzappend.c
index d7eea3e..23e93cf 100644
--- a/examples/gzappend.c
+++ b/examples/gzappend.c
@@ -33,7 +33,7 @@
* - Add L to constants in lseek() calls
* - Remove some debugging information in error messages
* - Use new data_type definition for zlib 1.2.1
- * - Simplfy and unify file operations
+ * - Simplify and unify file operations
* - Finish off gzip file in gztack()
* - Use deflatePrime() instead of adding empty blocks
* - Keep gzip file clean on appended file read errors
@@ -54,7 +54,7 @@
block boundary to facilitate locating and modifying the last block bit at
the start of the final deflate block. Also whether using Z_BLOCK or not,
another required feature of zlib 1.2.x is that inflate() now provides the
- number of unusued bits in the last input byte used. gzappend will not work
+ number of unused bits in the last input byte used. gzappend will not work
with versions of zlib earlier than 1.2.1.
gzappend first decompresses the gzip file internally, discarding all but
diff --git a/examples/gzlog.h b/examples/gzlog.h
index 86f0cec..4f05109 100644
--- a/examples/gzlog.h
+++ b/examples/gzlog.h
@@ -40,7 +40,7 @@
its new size at that time. After each write operation, the log file is a
valid gzip file that can decompressed to recover what was written.
- The gzlog operations can be interupted at any point due to an application or
+ The gzlog operations can be interrupted at any point due to an application or
system crash, and the log file will be recovered the next time the log is
opened with gzlog_open().
*/
diff --git a/examples/zran.c b/examples/zran.c
index f279db7..879c47c 100644
--- a/examples/zran.c
+++ b/examples/zran.c
@@ -21,7 +21,7 @@
An access point can be created at the start of any deflate block, by saving
the starting file offset and bit of that block, and the 32K bytes of
uncompressed data that precede that block. Also the uncompressed offset of
- that block is saved to provide a referece for locating a desired starting
+ that block is saved to provide a reference for locating a desired starting
point in the uncompressed stream. deflate_index_build() works by
decompressing the input zlib or gzip stream a block at a time, and at the
end of each block deciding if enough uncompressed data has gone by to