diff options
author | mm <mm@FreeBSD.org> | 2013-03-22 10:17:42 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2013-03-22 10:17:42 +0000 |
commit | af89cb16bfde2fc8e93708b89daff55026d3b216 (patch) | |
tree | 26ec75dd504a868603c0540d52c17669c59a9166 /usr.bin/ar/read.c | |
parent | 91184d303fb67f95efb9290219bfdb7b9594ab73 (diff) | |
download | FreeBSD-src-af89cb16bfde2fc8e93708b89daff55026d3b216.zip FreeBSD-src-af89cb16bfde2fc8e93708b89daff55026d3b216.tar.gz |
Replace deprecated (or remove obsolete) libarchive 2.8 functions
with libarchive 3.0 counterparts
Diffstat (limited to 'usr.bin/ar/read.c')
-rw-r--r-- | usr.bin/ar/read.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ar/read.c b/usr.bin/ar/read.c index 8df170d..e595869 100644 --- a/usr.bin/ar/read.c +++ b/usr.bin/ar/read.c @@ -87,9 +87,8 @@ read_archive(struct bsdar *bsdar, char mode) if ((a = archive_read_new()) == NULL) bsdar_errc(bsdar, EX_SOFTWARE, 0, "archive_read_new failed"); - archive_read_support_compression_none(a); archive_read_support_format_ar(a); - AC(archive_read_open_file(a, bsdar->filename, DEF_BLKSZ)); + AC(archive_read_open_filename(a, bsdar->filename, DEF_BLKSZ)); for (;;) { r = archive_read_next_header(a, &entry); @@ -200,5 +199,5 @@ read_archive(struct bsdar *bsdar, char mode) } } AC(archive_read_close(a)); - AC(archive_read_finish(a)); + AC(archive_read_free(a)); } |