From: Sergey Poznyakoff Date: Fri, 11 Nov 2016 10:16:59 +0000 (+0200) Subject: Minor fix X-Git-Tag: release_1_30~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21c1c295925e50b13eccd9a66ffefdcc63dfb86d;p=thirdparty%2Ftar.git Minor fix * src/tar.h (tar_stat_info): Change type of real_size_set to bool --- diff --git a/src/tar.h b/src/tar.h index f3e2c435..900df266 100644 --- 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 diff --git a/src/xheader.c b/src/xheader.c index 335ddaf5..66a3a2f0 100644 --- a/src/xheader.c +++ b/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; } }