diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 14:33:50 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 14:37:17 +0900 |
commit | c6e02a5482ecc6da6f193f173d2c13387f99f75a (patch) | |
tree | 80d053ff2cb1ac944bc6c6c2eefb69fa8183a11d /tar/read.c | |
parent | 9c476e169dfef5d67234e57b13884e55597e8cde (diff) | |
download | libarchive-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); |