diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2007-04-02 00:34:36 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2007-04-02 00:34:36 +0000 |
| commit | ce45c68d0ce6f3f8fe5d15968c746fcba7660879 (patch) | |
| tree | 5511af27699e5f0d46a93a8d3bf8f937f2370f3f | |
| parent | e086d708ffd1eb4cec53c4b6585b02beb0ba6dd1 (diff) | |
Notes
| -rw-r--r-- | lib/libarchive/archive_write_set_format_ustar.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libarchive/archive_write_set_format_ustar.c b/lib/libarchive/archive_write_set_format_ustar.c index 87fc16acc8dc..75766d5da8fe 100644 --- a/lib/libarchive/archive_write_set_format_ustar.c +++ b/lib/libarchive/archive_write_set_format_ustar.c @@ -490,13 +490,11 @@ format_octal(int64_t v, char *p, int s) static int archive_write_ustar_finish(struct archive_write *a) { - struct ustar *ustar; int r; if (a->compression_write == NULL) return (ARCHIVE_OK); - ustar = (struct ustar *)a->format_data; r = write_nulls(a, 512*2); return (r); } @@ -528,7 +526,8 @@ archive_write_ustar_finish_entry(struct archive_write *a) static int write_nulls(struct archive_write *a, size_t padding) { - int ret, to_write; + int ret; + size_t to_write; while (padding > 0) { to_write = padding < a->null_length ? padding : a->null_length; |
