summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test_read_format_pax_bz2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/test/test_read_format_pax_bz2.c')
-rw-r--r--lib/libarchive/test/test_read_format_pax_bz2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_read_format_pax_bz2.c b/lib/libarchive/test/test_read_format_pax_bz2.c
index 039bd53..9c59394 100644
--- a/lib/libarchive/test/test_read_format_pax_bz2.c
+++ b/lib/libarchive/test/test_read_format_pax_bz2.c
@@ -52,10 +52,10 @@ DEFINE_TEST(test_read_format_pax_bz2)
assert(archive_compression(a) == ARCHIVE_COMPRESSION_BZIP2);
assert(archive_format(a) == ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE);
assert(0 == archive_read_close(a));
-#if ARCHIVE_API_VERSION > 1
- assert(0 == archive_read_finish(a));
-#else
+#if ARCHIVE_VERSION_NUMBER < 2000000
archive_read_finish(a);
+#else
+ assert(0 == archive_read_finish(a));
#endif
}
OpenPOWER on IntegriCloud