diff options
author | Páder Rezső <rezso@rezso.net> | 2015-08-22 16:14:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-24 14:40:04 (GMT) |
commit | e7f937155f6f8b117d6292b3ffe6cf63c8eda9c0 (patch) | |
tree | 2c385746178f541abded94f3d186d4f0fd660337 /Source/cmSystemTools.cxx | |
parent | 2370a99400c6450606e25562386cf40bc9c41f38 (diff) | |
download | CMake-e7f937155f6f8b117d6292b3ffe6cf63c8eda9c0.zip CMake-e7f937155f6f8b117d6292b3ffe6cf63c8eda9c0.tar.gz CMake-e7f937155f6f8b117d6292b3ffe6cf63c8eda9c0.tar.bz2 |
Use modern libarchive APIs
Replace use of deprecated libarchive3 functions with their modern
equivalents.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index a117238..eba8d07 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1705,7 +1705,7 @@ bool extract_tar(const char* outFileName, bool verbose, static_cast<void>(localeRAII); struct archive* a = archive_read_new(); struct archive *ext = archive_write_disk_new(); - archive_read_support_compression_all(a); + archive_read_support_filter_all(a); archive_read_support_format_all(a); struct archive_entry *entry; int r = cm_archive_read_open_file(a, outFileName, 10240); @@ -1792,7 +1792,7 @@ bool extract_tar(const char* outFileName, bool verbose, } archive_write_free(ext); archive_read_close(a); - archive_read_finish(a); + archive_read_free(a); return r == ARCHIVE_EOF || r == ARCHIVE_OK; } } |