]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix typos
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 16 Jul 2026 20:48:19 +0000 (22:48 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 17 Jul 2026 06:49:12 +0000 (08:49 +0200)
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_entry.h
libarchive/archive_read.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_all.c
libarchive/archive_read_support_format_cab.c
libarchive/archive_read_support_format_lha.c
unzip/bsdunzip.c

index 15375ac82ba06e6b89fafea22f03cf9cea325986..34ad63016de3f3e1745f1ecfea13a56cbdac6ca9 100644 (file)
@@ -666,7 +666,7 @@ __LA_DECL void       archive_entry_sparse_add_entry(struct archive_entry *,
            la_int64_t /* offset */, la_int64_t /* length */);
 
 /*
- * To retrieve the xattr list, first "reset", then repeatedly ask for the
+ * To retrieve the sparse list, first "reset", then repeatedly ask for the
  * "next" entry.
  */
 
index ea2054db7d34ec5340647b93848e7d2e57773ea7..5562a7b16405121c161ccb33f2d81cdf1f76c477 100644 (file)
@@ -800,7 +800,7 @@ archive_read_header_position(struct archive *_a)
 
 /*
  * Returns 1 if the archive contains at least one encrypted entry.
- * If the archive format not support encryption at all
+ * If the archive format does not support encryption at all,
  * ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED is returned.
  * If for any other reason (e.g. not enough data read so far)
  * we cannot say whether there are encrypted entries, then
index 95a33c0d03151f57e0f2c5ada6746e57afe24366..25eb94161ce23506af057b78a9fafedc5ba47abc 100644 (file)
@@ -3332,7 +3332,7 @@ slurp_central_directory(struct archive_read *a, struct _7zip *zip,
        next_header_crc = archive_le32dec(p + 28);
 
        if (next_header_size == 0)
-               /* There is no entry in an archive file. */
+               /* There is no entry in the archive file. */
                return (ARCHIVE_EOF);
 
        __archive_read_consume(a, 32);
index 3b53c9ad5f572e5b6155fc694f40f7a03e85192e..a2c5a4c6f54080b42c671b566ab989bdc563ba9b 100644 (file)
@@ -80,7 +80,7 @@ archive_read_support_format_all(struct archive *a)
        /* Note: We always return ARCHIVE_OK here, even if some of the
         * above return ARCHIVE_WARN.  The intent here is to enable
         * "as much as possible."  Clients who need specific
-        * compression should enable those individually so they can
+        * formats should enable those individually so they can
         * verify the level of support. */
        /* Clear any warning messages set by the above functions. */
        archive_clear_error(a);
index c27d9e338695b4b6357edc628a94ac026ad27aaa..0bf769d793e97b5af4e081eb658ac4c799cdf7a6 100644 (file)
@@ -179,7 +179,7 @@ struct lzx_dec {
 #define ST_COPY                        22
 
        /*
-        * Window to see last decoded data, from 32KBi to 2MBi.
+        * Window to see last decoded data, from 32 KiB to 2 MiB.
         */
        size_t                   w_size;
        size_t                   w_mask;
@@ -1405,7 +1405,7 @@ cab_next_cfdata(struct archive_read *a)
                        }
                }
                /* If CFDATA is not last in a folder, an uncompressed
-                * size must be 0x8000(32KBi) */
+                * size must be 0x8000 (32 KiB) */
                if ((cab->entry_cffolder->cfdata_index <
                     cab->entry_cffolder->cfdata_count) &&
                       cfdata->uncompressed_size != MAX_UNCOMPRESS_SIZE)
@@ -2210,7 +2210,7 @@ lzx_decode_init(struct lzx_stream *strm, int w_bits)
        ds = strm->ds;
        ds->error = ARCHIVE_FAILED;
 
-       /* Allow bits from 15(32KBi) up to 21(2MBi) */
+       /* Allow bits from 15 (32 KiB) up to 21 (2 MiB) */
        if (w_bits < SLOT_BASE || w_bits > SLOT_MAX)
                return (ARCHIVE_FAILED);
 
@@ -2682,7 +2682,7 @@ lzx_read_blocks(struct lzx_stream *strm, int last)
                        /* FALL THROUGH */
                case ST_COPY_UNCOMP1:
                        /*
-                        * Copy bytes form next_in to next_out directly.
+                        * Copy bytes from next_in to next_out directly.
                         */
                        while (ds->block_bytes_avail) {
                                size_t l;
index b9e6a178934f2fcf181ca9ae28c1e01d74b87914..7b911e9181eec172e4f6dede315b1b410b2717ce 100644 (file)
@@ -1097,7 +1097,7 @@ lha_read_file_header_3(struct archive_read *a, struct lha *lha)
        header_crc = lha_crc16(0, p, H3_FIXED_SIZE);
        __archive_read_consume(a, H3_FIXED_SIZE);
 
-       /* Reject rediculously large header */
+       /* Reject ridiculously large header */
        if (lha->header_size > 65536) {
                archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
                    "LHa header size too large");
index 986621b51c874f29a5750fb26605998a14bb0794..ba63e41ef0c3c3d5f9401cf906a355e156d56647 100644 (file)
@@ -354,7 +354,7 @@ system_unlink(const char *pathname) {
 
 /*
  * Create the specified directory with the specified mode, taking certain
- * precautions on they way.
+ * precautions on the way.
  */
 static void
 make_dir(const char *path, int mode)