diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 13:48:48 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 13:48:48 +0900 |
commit | 7cc027b719cfa840d7e53d6616e33f0f7ed5182a (patch) | |
tree | fad54bca206079edecc2a1736e7dd99c3e367ef5 /tar/write.c | |
parent | 3905ceaa51f1c9a5e2b486267064f6a0a4c2eb02 (diff) | |
download | libarchive-7cc027b719cfa840d7e53d6616e33f0f7ed5182a.tar.gz |
Stop using deprecated functions. Much remains to be replaced.
s/archive_compression(/archive_filter_code(/
Diffstat (limited to 'tar/write.c')
-rw-r--r-- | tar/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/write.c b/tar/write.c index 953aa949..1a24bdfc 100644 --- a/tar/write.c +++ b/tar/write.c @@ -253,7 +253,7 @@ tar_mode_r(struct bsdtar *bsdtar) "Can't read archive %s: %s", bsdtar->filename, archive_error_string(a)); while (0 == archive_read_next_header(a, &entry)) { - if (archive_compression(a) != ARCHIVE_COMPRESSION_NONE) { + if (archive_filter_code(a, 0) != ARCHIVE_COMPRESSION_NONE) { archive_read_free(a); close(bsdtar->fd); lafe_errc(1, 0, @@ -346,7 +346,7 @@ tar_mode_u(struct bsdtar *bsdtar) /* Build a list of all entries and their recorded mod times. */ while (0 == archive_read_next_header(a, &entry)) { - if (archive_compression(a) != ARCHIVE_COMPRESSION_NONE) { + if (archive_filter_code(a, 0) != ARCHIVE_COMPRESSION_NONE) { archive_read_free(a); close(bsdtar->fd); lafe_errc(1, 0, |