summaryrefslogtreecommitdiff
path: root/tar/write.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-07 14:05:06 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-07 14:05:06 +0900
commit9c476e169dfef5d67234e57b13884e55597e8cde (patch)
treeef302218aaf8770d49e61ebb7ae26c8314ab70b4 /tar/write.c
parent4187df11b662d387d5e4c31df0f88083b5e54eef (diff)
downloadlibarchive-9c476e169dfef5d67234e57b13884e55597e8cde.tar.gz
Stop using deprecated functions. Much remains to be replaced.
s/archive_position_compressed(a)/archive_filter_bytes(a, -1)/
Diffstat (limited to 'tar/write.c')
-rw-r--r--tar/write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/write.c b/tar/write.c
index 7f5e03e4..a534d74a 100644
--- a/tar/write.c
+++ b/tar/write.c
@@ -553,7 +553,7 @@ cleanup:
if (bsdtar->option_totals) {
fprintf(stderr, "Total bytes written: %s\n",
- tar_i64toa(archive_position_compressed(a)));
+ tar_i64toa(archive_filter_bytes(a, -1)));
}
archive_write_free(a);
@@ -951,7 +951,7 @@ report_write(struct bsdtar *bsdtar, struct archive *a,
if (bsdtar->verbose)
fprintf(stderr, "\n");
- comp = archive_position_compressed(a);
+ comp = archive_filter_bytes(a, -1);
uncomp = archive_filter_bytes(a, 0);
fprintf(stderr, "In: %d files, %s bytes;",
archive_file_count(a), tar_i64toa(uncomp));