]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix typos in comments
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 31 May 2026 09:06:30 +0000 (11:06 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 31 May 2026 15:40:16 +0000 (17:40 +0200)
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_filter_gzip.c
libarchive/archive_read_support_filter_lz4.c
libarchive/archive_read_support_filter_lzop.c
libarchive/archive_read_support_format_cpio.c
libarchive/archive_write_add_filter_lz4.c
libarchive/archive_write_set_format_iso9660.c
libarchive/archive_write_set_format_xar.c
libarchive/test/test_compat_lz4.c

index ea1b102ce024c2773095191f7a2a170d8ccd205c..d39caf042b54b07fe0a37c9d862a0a9a0ff8bcc5 100644 (file)
@@ -283,7 +283,7 @@ gzip_read_header(struct archive_read_filter *self, struct archive_entry *entry)
 
        state = (struct private_data *)self->data;
 
-       /* A mtime of 0 is considered invalid/missing. */
+       /* An mtime of 0 is considered invalid/missing. */
        if (state->mtime != 0)
                archive_entry_set_mtime(entry, state->mtime, 0);
 
index acd7f515799774e25ab51a89d769e3aa556c5615..c692e782b953b65ded87c1b4dff69f855e4346b0 100644 (file)
@@ -361,7 +361,7 @@ lz4_filter_read(struct archive_read_filter *self, const void **p)
                break;
        case READ_DEFAULT_STREAM:
        case READ_LEGACY_STREAM:
-               /* Reading a lz4 stream already failed. */
+               /* Reading an lz4 stream already failed. */
                archive_set_error(&self->archive->archive,
                    ARCHIVE_ERRNO_MISC, "Invalid sequence");
                return (ARCHIVE_FATAL);
index 00b61cc8941e9ae593d26dfc5df35afab7fad49f..92ddea4bb00f800ce1e46e07375b1ed7238c6ecb 100644 (file)
@@ -428,7 +428,7 @@ lzop_filter_read(struct archive_read_filter *self, const void **p)
        }
 
        /*
-        * If the both uncompressed size and compressed size are the same,
+        * If both uncompressed size and compressed size are the same,
         * we do not decompress this block.
         */
        if (state->uncompressed_size == state->compressed_size) {
index 047682eb0ca463841d7efbcd0625206f169551f6..4fd5f13835f23e294f62893c9214b8c66d916bd2 100644 (file)
@@ -838,7 +838,7 @@ header_odc(struct archive_read *a, struct cpio *cpio,
  * NOTE: if a filename suffix is ".z", it is a file gzipped by afio.
  * it would be nice if we could show uncompressed file size and
  * uncompress file contents automatically, unfortunately we have nothing
- * to get a uncompressed file size while reading each header. It means
+ * to get an uncompressed file size while reading each header. It means
  * we also cannot uncompress file contents under our framework.
  */
 static int
index efc408e2a3f8d964bf4eeea32438ab083192249e..67cc209a5efc14871493783bcd20d1697512d710 100644 (file)
@@ -88,7 +88,7 @@ static int archive_filter_lz4_write(struct archive_write_filter *,
                    const void *, size_t);
 
 /*
- * Add a lz4 compression filter to this write handle.
+ * Add an lz4 compression filter to this write handle.
  */
 int
 archive_write_add_filter_lz4(struct archive *_a)
@@ -243,7 +243,7 @@ archive_filter_lz4_open(struct archive_write_filter *f)
                free(data->out_buffer);
                if (f->archive->magic == ARCHIVE_WRITE_MAGIC) {
                        /* Buffer size should be a multiple number of
-                        * the of bytes per block for performance. */
+                        * the bytes per block for performance. */
                        bpb = archive_write_get_bytes_per_block(f->archive);
                        if (bpb > bs)
                                bs = bpb;
index d99c7ac4c7abbffd2dc468b577327bd960eca742..b94cbb2727125abe96ca8dc32793126cbcedcea0 100644 (file)
@@ -766,7 +766,7 @@ struct iso9660 {
 #ifdef HAVE_ZLIB_H
                /*
                 * Copy a compressed file to iso9660.zisofs.temp_fd
-                * and also copy a uncompressed file(original file) to
+                * and also copy an uncompressed file(original file) to
                 * iso9660.temp_fd . If the number of logical block
                 * of the compressed file is less than the number of
                 * logical block of the uncompressed file, use it and
index 134238d5edf13358330ef82d867aca8a6da93308..a51c574f994c79a04fc2736f6338ee709ba7fe9b 100644 (file)
@@ -1439,7 +1439,7 @@ make_file_entry(struct archive_write *a, struct xml_writer *writer,
        }
 
        /*
-        * Make a mtime entry, "<mtime>".
+        * Make an mtime entry, "<mtime>".
         */
        if (archive_entry_mtime_is_set(file->entry)) {
                r = xmlwrite_time(a, writer, "mtime",
index 3678cd0a0c70706400f36858d918a1fe675e15ac..d053155694d153ab73629c163b49373dca68e22c 100644 (file)
@@ -31,7 +31,7 @@
  * In particular:
  *  * lz4 -d will read multiple lz4 streams, concatenating the output
  *  * lz4 -d will stop at the end of a stream if the following data
- *    doesn't start with a lz4 signature.
+ *    doesn't start with an lz4 signature.
  */
 
 /*