diff options
Diffstat (limited to 'lib/libarchive/test/test_read_format_tgz.c')
-rw-r--r-- | lib/libarchive/test/test_read_format_tgz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_read_format_tgz.c b/lib/libarchive/test/test_read_format_tgz.c index 4235358..f046733 100644 --- a/lib/libarchive/test/test_read_format_tgz.c +++ b/lib/libarchive/test/test_read_format_tgz.c @@ -44,10 +44,10 @@ DEFINE_TEST(test_read_format_tgz) assert(archive_compression(a) == ARCHIVE_COMPRESSION_GZIP); assert(archive_format(a) == ARCHIVE_FORMAT_TAR_USTAR); 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 } |