diff options
author | Roman Neuhauser <neuhauser@sigpipe.cz> | 2011-03-28 19:18:00 -0400 |
---|---|---|
committer | Roman Neuhauser <neuhauser@sigpipe.cz> | 2011-03-28 19:18:00 -0400 |
commit | a58aaa4fb025ab4562fd27dcba22609ad4e6525f (patch) | |
tree | ef817aa16950d07e5e80576858777ca06d94d50f /libarchive/archive_read_support_filter_none.c | |
parent | 77fc5b1e0e5be5aab8b540965cf63dae8b915260 (diff) | |
download | libarchive-a58aaa4fb025ab4562fd27dcba22609ad4e6525f.tar.gz |
archive_read_support_compression_*() -> archive_read_support_filter_*()
maintain BC aliases (ARCHIVE_VERSION_NUMBER < 4000000). if fact,
the new names are wrappers around the old ones as i want to switch
the tests to the new names and have the old names still tested.
the wrappers revealed a mismatch between
archive_read_support_compression_program_signature declaration in
archive.h and its definition (const void* vs void*), i'm going with
const void*.
SVN-Revision: 3113
Diffstat (limited to 'libarchive/archive_read_support_filter_none.c')
-rw-r--r-- | libarchive/archive_read_support_filter_none.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libarchive/archive_read_support_filter_none.c b/libarchive/archive_read_support_filter_none.c index e05614f9..9530ccb7 100644 --- a/libarchive/archive_read_support_filter_none.c +++ b/libarchive/archive_read_support_filter_none.c @@ -28,6 +28,16 @@ __FBSDID("$FreeBSD$"); #include "archive.h" +#if ARCHIVE_VERSION_NUMBER >= 4000000 +#warning archive_read_support_compression_none +#endif + +int +archive_read_support_filter_none(struct archive *a) +{ + return archive_read_support_compression_none(a); +} + /* * Uncompressed streams are handled implicitly by the read core, * so this is now a no-op. |