diff options
Diffstat (limited to 'examples/untar.c')
-rw-r--r-- | examples/untar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/untar.c b/examples/untar.c index e77adf7..c027f77 100644 --- a/examples/untar.c +++ b/examples/untar.c @@ -190,7 +190,7 @@ extract(const char *filename, int do_extract, int flags) msg("\n"); } archive_read_close(a); - archive_read_finish(a); + archive_read_free(a); exit(0); } @@ -200,7 +200,11 @@ copy_data(struct archive *ar, struct archive *aw) int r; const void *buff; size_t size; +#if ARCHIVE_VERSION >= 3000000 + int64_t offset; +#else off_t offset; +#endif for (;;) { r = archive_read_data_block(ar, &buff, &size, &offset); |