summaryrefslogtreecommitdiff
path: root/tar/read.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-07 14:33:50 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-07 14:37:17 +0900
commitc6e02a5482ecc6da6f193f173d2c13387f99f75a (patch)
tree80d053ff2cb1ac944bc6c6c2eefb69fa8183a11d /tar/read.c
parent9c476e169dfef5d67234e57b13884e55597e8cde (diff)
downloadlibarchive-c6e02a5482ecc6da6f193f173d2c13387f99f75a.tar.gz
Stop using deprecated functions.
s/archive_read_open_file/archive_read_open_filename/ s/archive_write_open_file/archive_write_open_filename/
Diffstat (limited to 'tar/read.c')
-rw-r--r--tar/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tar/read.c b/tar/read.c
index ae58d027..70607720 100644
--- a/tar/read.c
+++ b/tar/read.c
@@ -180,7 +180,8 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer)
archive_read_support_format_all(a);
if (ARCHIVE_OK != archive_read_set_options(a, bsdtar->option_options))
lafe_errc(1, 0, "%s", archive_error_string(a));
- if (archive_read_open_file(a, bsdtar->filename, bsdtar->bytes_per_block))
+ if (archive_read_open_filename(a, bsdtar->filename,
+ bsdtar->bytes_per_block))
lafe_errc(1, 0, "Error opening archive: %s",
archive_error_string(a));