]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Spelling fixes (#830)
authorGraham Percival <graham@percival-music.ca>
Wed, 30 Nov 2016 21:46:10 +0000 (13:46 -0800)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 30 Nov 2016 21:46:10 +0000 (22:46 +0100)
* Spelling: previos -> previous

Sponsored by: Tarsnap Backup Inc.

* Spelling: Preparre -> Prepare

Sponsored by: Tarsnap Backup Inc.

* Spelling: Invalide -> Invalid

Sponsored by: Tarsnap Backup Inc.

* Spelling: leagal -> legal

Sponsored by: Tarsnap Backup Inc.

* Spelling: lengthe -> length

Sponsored by: Tarsnap Backup Inc.

* Spelling: cotents -> contents

Sponsored by: Tarsnap Backup Inc.

* Spelling: travesal -> traversal

Sponsored by: Tarsnap Backup Inc.

* Spelling: functinos -> functions

Sponsored by: Tarsnap Backup Inc.

* Spelling: particluar -> particular

Sponsored by: Tarsnap Backup Inc.

* Spelling: uncapable -> incapable

Sponsored by: Tarsnap Backup Inc.

libarchive/archive.h
tar/creation_set.c
tar/test/main.c
tar/test/test_copy.c
tar/test/test_windows.c
tar/write.c

index ff401e94fa667f1e25ccd5d56bba3a9f18ab04ee..3a9369084d474383420fed76564e527703b3dd4d 100644 (file)
@@ -562,7 +562,7 @@ __LA_DECL la_int64_t                 archive_read_header_position(struct archive *);
  * we cannot say whether there are encrypted entries, then
  * ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW is returned.
  * In general, this function will return values below zero when the
- * reader is uncertain or totally uncapable of encryption support.
+ * reader is uncertain or totally incapable of encryption support.
  * When this function returns 0 you can be sure that the reader
  * supports encryption detection but no encrypted entries have
  * been found yet.
@@ -984,12 +984,12 @@ __LA_DECL int     archive_read_disk_can_descend(struct archive *);
 __LA_DECL int  archive_read_disk_current_filesystem(struct archive *);
 __LA_DECL int  archive_read_disk_current_filesystem_is_synthetic(struct archive *);
 __LA_DECL int  archive_read_disk_current_filesystem_is_remote(struct archive *);
-/* Request that the access time of the entry visited by travesal be restored. */
+/* Request that the access time of the entry visited by traversal be restored. */
 __LA_DECL int  archive_read_disk_set_atime_restored(struct archive *);
 /*
  * Set behavior. The "flags" argument selects optional behavior.
  */
-/* Request that the access time of the entry visited by travesal be restored.
+/* Request that the access time of the entry visited by traversal be restored.
  * This is the same as archive_read_disk_set_atime_restored. */
 #define        ARCHIVE_READDISK_RESTORE_ATIME          (0x0001)
 /* Default: Do not skip an entry which has nodump flags. */
@@ -1124,7 +1124,7 @@ __LA_DECL int     archive_match_time_excluded(struct archive *,
 
 /*
  * Flags to tell a matching type of time stamps. These are used for
- * following functinos.
+ * following functions.
  */
 /* Time flag: mtime to be tested. */
 #define ARCHIVE_MATCH_MTIME    (0x0100)
@@ -1144,7 +1144,7 @@ __LA_DECL int     archive_match_include_date(struct archive *, int _flag,
                    const char *_datestr);
 __LA_DECL int  archive_match_include_date_w(struct archive *, int _flag,
                    const wchar_t *_datestr);
-/* Set inclusion time by a particluar file. */
+/* Set inclusion time by a particular file. */
 __LA_DECL int  archive_match_include_file_time(struct archive *,
                    int _flag, const char *_pathname);
 __LA_DECL int  archive_match_include_file_time_w(struct archive *,
index 87d561b3519333a95b3cbb7d0ce750afcdba2f91..24cf3fcdd4ef8712221ec832fea99990a427e133 100644 (file)
@@ -295,7 +295,7 @@ cset_auto_compress(struct creation_set *cset, const char *filename)
                struct filter_set *v;
                int i, r;
 
-               /* Release previos filters. */
+               /* Release previous filters. */
                _cleanup_filters(old_filters, old_filter_count);
 
                v = malloc(sizeof(*v) * cset->filter_count);
@@ -308,7 +308,7 @@ cset_auto_compress(struct creation_set *cset, const char *filename)
                cset->filters = v;
                return (1);
        } else {
-               /* Put previos filters back. */
+               /* Put previous filters back. */
                cset->filters = old_filters;
                cset->filter_count = old_filter_count;
                return (0);
index d35d3356544975e02cdb1545f28deb62671bb752..71a0c49e5e4f95092f1cc28a054df63dda2db89a 100644 (file)
@@ -521,7 +521,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (0); /* Standard:  return 0 for end-of-string. */
        cnt = utf8_count[ch];
 
-       /* Invalide sequence or there are not plenty bytes. */
+       /* Invalid sequence or there are not plenty bytes. */
        if (n < (size_t)cnt)
                return (-1);
 
@@ -560,7 +560,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (-1);
        }
 
-       /* The code point larger than 0x10FFFF is not leagal
+       /* The code point larger than 0x10FFFF is not legal
         * Unicode values. */
        if (wc > 0x10FFFF)
                return (-1);
index c4c1aa05745dafc178d2117538f209804d4a3638..e6e31f45228560d2ebca7d21fbd11cb17988ba12 100644 (file)
@@ -285,7 +285,7 @@ copy_basic(void)
 
        /* NOTE: for proper operation on cygwin-1.5 and windows, the
         * length of the name of the directory below, "plain", must be
-        * less than or equal to the lengthe of the name of the original
+        * less than or equal to the length of the name of the original
         * directory, "original"  This restriction derives from the
         * extremely limited pathname lengths on those platforms.
         */
@@ -327,7 +327,7 @@ copy_ustar(void)
 
        /* NOTE: for proper operation on cygwin-1.5 and windows, the
         * length of the name of the directory below, "ustar", must be
-        * less than or equal to the lengthe of the name of the original
+        * less than or equal to the length of the name of the original
         * directory, "original"  This restriction derives from the
         * extremely limited pathname lengths on those platforms.
         */
index 1977ec644e6877ba88000c2f734656466d8c574c..d619667bfa6c761349975103a70b053ae3e1e2b1 100644 (file)
@@ -133,7 +133,7 @@ DEFINE_TEST(test_windows)
        char *fp1, *fp2;
 
        /*
-        * Preparre tests.
+        * Prepare tests.
         * Create directories and files.
         */
        assertMakeDir("tmp", 0775);
index da5a128254faa40010617f580e00645211eb98cc..7960487f9d067700326d040b7bd45f6a84f1b8a2 100644 (file)
@@ -527,7 +527,7 @@ write_archive(struct archive *a, struct bsdtar *bsdtar)
                struct archive *disk = bsdtar->diskreader;
 
                /*
-                * This tricky code here is to correctly read the cotents
+                * This tricky code here is to correctly read the contents
                 * of the entry because the disk reader bsdtar->diskreader
                 * is pointing at does not have any information about the
                 * entry by this time and using archive_read_data_block()