]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Prefer idx_t to size_t in common.h
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 16:40:36 +0000 (09:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
* src/common.h (struct name): Prefer idx_t to size_t.
(volume_label_count): Remove; unused.

src/common.h

index 29908ce8d598c363a34b740628cd6484beb6d3e1..9e99c235cbd7c6a2a72e30ffab56d6901dde0563 100644 (file)
@@ -353,7 +353,7 @@ struct name
     struct name *prev;          /* Link to the previous element */
 
     char *name;                 /* File name or globbing pattern */
-    size_t length;             /* cached strlen (name) */
+    idx_t length;              /* cached strlen (name) */
     int matching_flags;         /* wildcard flags if name is a pattern */
     bool is_wildcard;           /* true if this is a wildcard pattern */
     bool cmdline;               /* true if this name was given in the
@@ -432,7 +432,6 @@ extern bool seekable_archive;
 extern FILE *stdlis;
 extern bool write_archive_to_stdout;
 extern char *volume_label;
-extern size_t volume_label_count;
 extern char *continued_file_name;
 extern uintmax_t continued_file_size;
 extern uintmax_t continued_file_offset;