diff options
author | Dongwoo Lee <dwoo08.lee@samsung.com> | 2017-09-25 17:21:35 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-05-18 03:28:47 +0000 |
commit | 9ab5f26254cb3c3f308786892701d3fd8fb79c64 (patch) | |
tree | 26931eaf4e10236c1dc48c9f5bd540d0a38afc83 /libthor | |
parent | e522496ddfc70b16e05fe1c609eba47c81b6c990 (diff) | |
download | lthor-9ab5f26254cb3c3f308786892701d3fd8fb79c64.tar.gz lthor-9ab5f26254cb3c3f308786892701d3fd8fb79c64.tar.bz2 lthor-9ab5f26254cb3c3f308786892701d3fd8fb79c64.zip |
Fix use of deprecated libarchive function calls
To get rid of build warning about deprecated funcations of libarchive,
this patch replaces those function calls with alternative ones.
Change-Id: I164c60243e20fcbbdad2185a14534fe7a4daf9d8
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Diffstat (limited to 'libthor')
-rw-r--r-- | libthor/thor_tar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libthor/thor_tar.c b/libthor/thor_tar.c index 0f6fb10..f7bb78b 100644 --- a/libthor/thor_tar.c +++ b/libthor/thor_tar.c @@ -102,7 +102,7 @@ static void tar_release(struct thor_data_src *src) } free(tardata->entries); archive_read_close(tardata->ar); - archive_read_finish(tardata->ar); + archive_read_free(tardata->ar); archive_entry_free(tardata->ae); free(tardata); } @@ -123,8 +123,8 @@ static int tar_prep_read(const char *path, struct archive **archive, goto read_finish; archive_read_support_format_tar(ar); - archive_read_support_compression_gzip(ar); - archive_read_support_compression_bzip2(ar); + archive_read_support_filter_gzip(ar); + archive_read_support_filter_bzip2(ar); if (!strcmp(path, "-")) ret = archive_read_open_FILE(ar, stdin); @@ -140,7 +140,7 @@ static int tar_prep_read(const char *path, struct archive **archive, cleanup: archive_entry_free(ae); read_finish: - archive_read_finish(ar); + archive_read_free(ar); return ret; } @@ -216,7 +216,7 @@ cleanup: } } archive_read_close(ar); - archive_read_finish(ar); + archive_read_free(ar); archive_entry_free(ae); out: return ret; |