Browse Source

Minor fix

* src/tar.h (tar_stat_info): Change type of real_size_set to bool
Sergey Poznyakoff 8 years ago
parent
commit
21c1c29592
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/tar.h
  2. 1 1
      src/xheader.c

+ 1 - 1
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

+ 1 - 1
src/xheader.c

@@ -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;
     }
 }