]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Spelling fix in "struct tree{}" code 833/head
authorGraham Percival <gperciva@tarsnap.com>
Thu, 8 Dec 2016 17:46:33 +0000 (09:46 -0800)
committerGraham Percival <gperciva@tarsnap.com>
Thu, 8 Dec 2016 17:46:33 +0000 (09:46 -0800)
Sponsored by: Tarsnap Backup Inc.

libarchive/archive_read_disk_posix.c
libarchive/archive_read_disk_windows.c

index bb2b7f9f1f92af6b301e80a9f4b178dad5ffeef5..3cc5168e491b4fbc8ddb9a003d3547bfacae3e90 100644 (file)
@@ -244,7 +244,7 @@ struct tree {
        int                      initial_filesystem_id;
        int                      current_filesystem_id;
        int                      max_filesystem_id;
-       int                      allocated_filesytem;
+       int                      allocated_filesystem;
 
        int                      entry_fd;
        int                      entry_eof;
@@ -1393,7 +1393,7 @@ update_current_filesystem(struct archive_read_disk *a, int64_t dev)
         * This is the new filesystem which we have to generate a new ID for.
         */
        fid = t->max_filesystem_id++;
-       if (t->max_filesystem_id > t->allocated_filesytem) {
+       if (t->max_filesystem_id > t->allocated_filesystem) {
                size_t s;
                void *p;
 
@@ -1406,7 +1406,7 @@ update_current_filesystem(struct archive_read_disk *a, int64_t dev)
                        return (ARCHIVE_FATAL);
                }
                t->filesystem_table = (struct filesystem *)p;
-               t->allocated_filesytem = s;
+               t->allocated_filesystem = s;
        }
        t->current_filesystem_id = fid;
        t->current_filesystem = &(t->filesystem_table[fid]);
index 0532afa495377c596033f2cdfccfb04e422a5939..993a1dc40dc26917fc0a2c36ab2e8626c503cf4c 100644 (file)
@@ -168,7 +168,7 @@ struct tree {
        int                      initial_filesystem_id;
        int                      current_filesystem_id;
        int                      max_filesystem_id;
-       int                      allocated_filesytem;
+       int                      allocated_filesystem;
 
        HANDLE                   entry_fh;
        int                      entry_eof;
@@ -1271,7 +1271,7 @@ update_current_filesystem(struct archive_read_disk *a, int64_t dev)
         * There is a new filesystem, we generate a new ID for.
         */
        fid = t->max_filesystem_id++;
-       if (t->max_filesystem_id > t->allocated_filesytem) {
+       if (t->max_filesystem_id > t->allocated_filesystem) {
                size_t s;
                void *p;
 
@@ -1284,7 +1284,7 @@ update_current_filesystem(struct archive_read_disk *a, int64_t dev)
                        return (ARCHIVE_FATAL);
                }
                t->filesystem_table = (struct filesystem *)p;
-               t->allocated_filesytem = (int)s;
+               t->allocated_filesystem = (int)s;
        }
        t->current_filesystem_id = fid;
        t->current_filesystem = &(t->filesystem_table[fid]);