diff options
author | Tim Kientzle <kientzle@gmail.com> | 2011-01-22 18:05:58 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2011-01-22 18:05:58 -0500 |
commit | 85a8c85227016804e4453f07278967da2907e2d8 (patch) | |
tree | f6b3ee4fcac8ec2dd0abcf666851501cfd25726c /libarchive/archive_virtual.c | |
parent | 566a663670eeddf18c4b45ba51a80952714cb213 (diff) | |
download | libarchive-85a8c85227016804e4453f07278967da2907e2d8.tar.gz |
Eliminate a bunch of off_t uses.
Most of these are from the libarchive 2 API that's no longer supported.
A few are places where int64_t offsets need to be mapped down to system
APIs that might only be 32 bits; those are a little trickier.
SVN-Revision: 2937
Diffstat (limited to 'libarchive/archive_virtual.c')
-rw-r--r-- | libarchive/archive_virtual.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libarchive/archive_virtual.c b/libarchive/archive_virtual.c index 58be92fa..05aadab6 100644 --- a/libarchive/archive_virtual.c +++ b/libarchive/archive_virtual.c @@ -115,13 +115,8 @@ archive_write_data(struct archive *a, const void *buff, size_t s) return ((a->vtable->archive_write_data)(a, buff, s)); } -#if ARCHIVE_VERSION_NUMBER < 3000000 -ssize_t -archive_write_data_block(struct archive *a, const void *buff, size_t s, off_t o) -#else ssize_t archive_write_data_block(struct archive *a, const void *buff, size_t s, int64_t o) -#endif { return ((a->vtable->archive_write_data_block)(a, buff, s, o)); } @@ -138,23 +133,9 @@ archive_read_next_header2(struct archive *a, struct archive_entry *entry) return ((a->vtable->archive_read_next_header2)(a, entry)); } -#if ARCHIVE_VERSION_NUMBER < 3000000 -int -archive_read_data_block(struct archive *a, - const void **buff, size_t *s, off_t *o) -{ - int r; - int64_t o64; - - r = ((a->vtable->archive_read_data_block)(a, buff, s, &o64)); - *o = (off_t)o64; - return (r); -} -#else int archive_read_data_block(struct archive *a, const void **buff, size_t *s, int64_t *o) { return ((a->vtable->archive_read_data_block)(a, buff, s, o)); } -#endif |