]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Minor fix
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 11 Nov 2016 10:16:59 +0000 (12:16 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 11 Nov 2016 10:22:03 +0000 (12:22 +0200)
* src/tar.h (tar_stat_info): Change type of real_size_set to bool

src/tar.h
src/xheader.c

index f3e2c43534af0f3f1a38691a7119524d15ce69ba..900df26657e40795cc7b767b4791a4ec33abb2d6 100644 (file)
--- a/src/tar.h
+++ b/src/tar.h
@@ -328,7 +328,7 @@ struct tar_stat_info
   struct sp_array *sparse_map;
 
   off_t real_size;          /* The real size of sparse file */
-  int   real_size_set;      /* True when GNU.sparse.realsize is set in
+  bool  real_size_set;      /* True when GNU.sparse.realsize is set in
                               archived file */
 
   bool  sparse_name_done;   /* Set to true if 'GNU.sparse.name' header was
index 335ddaf55b7ef3ae1bbd58873cc24ba4bc19660b..66a3a2f0f35f5a0d03fb8a0d7e3e98fd05ce6435 100644 (file)
@@ -1389,7 +1389,7 @@ sparse_size_decoder (struct tar_stat_info *st,
   uintmax_t u;
   if (decode_num (&u, arg, TYPE_MAXIMUM (off_t), keyword))
     {
-      st->real_size_set = 1;
+      st->real_size_set = true;
       st->real_size = u;
     }
 }