Fewer uses of size_t in create.c
* src/create.c (struct exclusion_tag, to_octal, tar_copy_str) (tar_name_copy_str, to_base256, to_chars_subst, to_chars) (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars) (off_to_chars, time_to_chars, uid_to_chars, uintmax_to_chars) (string_to_chars, start_private_header, write_gnu_long_link) (split_long_name, write_ustar_long_name, simple_finish_header) (dump_dir0, ensure_slash, create_archive): Prefer idx_t to size_t.
This commit is contained in:
@@ -507,7 +507,7 @@ void finish_header (struct tar_stat_info *st, union block *header,
|
||||
void simple_finish_header (union block *header);
|
||||
union block *write_extended (bool global, struct tar_stat_info *st,
|
||||
union block *old_header);
|
||||
union block *start_private_header (const char *name, size_t size, time_t t);
|
||||
union block *start_private_header (const char *name, idx_t size, time_t t);
|
||||
void write_eot (void);
|
||||
void check_links (void);
|
||||
int subfile_open (struct tar_stat_info const *dir, char const *file, int flags);
|
||||
@@ -520,8 +520,8 @@ enum exclusion_tag_type check_exclusion_tags (struct tar_stat_info const *st,
|
||||
#define OFF_TO_CHARS(val, where) off_to_chars (val, where, sizeof (where))
|
||||
#define TIME_TO_CHARS(val, where) time_to_chars (val, where, sizeof (where))
|
||||
|
||||
bool off_to_chars (off_t off, char *buf, size_t size);
|
||||
bool time_to_chars (time_t t, char *buf, size_t size);
|
||||
bool off_to_chars (off_t off, char *buf, idx_t size);
|
||||
bool time_to_chars (time_t t, char *buf, idx_t size);
|
||||
|
||||
/* Module diffarch.c. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user