summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test_read_format_zip.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/test/test_read_format_zip.c')
-rw-r--r--lib/libarchive/test/test_read_format_zip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_read_format_zip.c b/lib/libarchive/test/test_read_format_zip.c
index d385b1c..e4cfaa1 100644
--- a/lib/libarchive/test/test_read_format_zip.c
+++ b/lib/libarchive/test/test_read_format_zip.c
@@ -65,10 +65,10 @@ DEFINE_TEST(test_read_format_zip)
assertA(archive_format(a) == ARCHIVE_FORMAT_ZIP);
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