summaryrefslogtreecommitdiff
path: root/examples/untar.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/untar.c')
-rw-r--r--examples/untar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/untar.c b/examples/untar.c
index b22d8361a0127..dab75d2ede538 100644
--- a/examples/untar.c
+++ b/examples/untar.c
@@ -53,7 +53,6 @@
*/
#include <sys/types.h>
-__FBSDID("$FreeBSD$");
#include <sys/stat.h>
@@ -191,6 +190,9 @@ extract(const char *filename, int do_extract, int flags)
}
archive_read_close(a);
archive_read_free(a);
+
+ archive_write_close(ext);
+ archive_write_free(ext);
exit(0);
}
@@ -200,7 +202,7 @@ copy_data(struct archive *ar, struct archive *aw)
int r;
const void *buff;
size_t size;
-#if ARCHIVE_VERSION >= 3000000
+#if ARCHIVE_VERSION_NUMBER >= 3000000
int64_t offset;
#else
off_t offset;