* src/tar.h (struct xheader, struct tar_stat_info):
Prefer idx_t to size_t. All uses changed.
idx_t avail = st->sparse_map_avail;
if (avail == st->sparse_map_size)
st->sparse_map = sparse_map =
- x2nrealloc (sparse_map, &st->sparse_map_size, sizeof *sparse_map);
+ xpalloc (sparse_map, &st->sparse_map_size, 1, -1, sizeof *sparse_map);
sparse_map[avail] = *sp;
st->sparse_map_avail = avail + 1;
}
struct xheader
{
struct obstack *stk;
- size_t size;
+ idx_t size;
char *buffer;
uintmax_t string_length;
};
/* For sparse files: */
intmax_t sparse_major;
intmax_t sparse_minor;
- size_t sparse_map_avail; /* Index to the first unused element in
+ idx_t sparse_map_avail; /* Index to the first unused element in
sparse_map array. Zero if the file is
not sparse */
- size_t sparse_map_size; /* Size of the sparse map */
+ idx_t sparse_map_size; /* Size of the sparse map */
struct sp_array *sparse_map;
off_t real_size; /* The real size of sparse file */