diff options
Diffstat (limited to 'archival/bzip2.c')
-rw-r--r-- | archival/bzip2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/archival/bzip2.c b/archival/bzip2.c index bbaf566..f1c84d6 100644 --- a/archival/bzip2.c +++ b/archival/bzip2.c @@ -102,7 +102,7 @@ IF_DESKTOP(long long) int bz_write(bz_stream *strm, void* rbuf, ssize_t rlen, vo } static -IF_DESKTOP(long long) int compressStream(unpack_info_t *info UNUSED_PARAM) +IF_DESKTOP(long long) int FAST_FUNC compressStream(unpack_info_t *info UNUSED_PARAM) { IF_DESKTOP(long long) int total; ssize_t count; @@ -135,12 +135,6 @@ IF_DESKTOP(long long) int compressStream(unpack_info_t *info UNUSED_PARAM) return total; } -static -char* make_new_name_bzip2(char *filename) -{ - return xasprintf("%s.bz2", filename); -} - int bzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int bzip2_main(int argc UNUSED_PARAM, char **argv) { @@ -181,5 +175,5 @@ int bzip2_main(int argc UNUSED_PARAM, char **argv) argv += optind; option_mask32 &= 0x7; /* ignore all except -cfv */ - return bbunpack(argv, make_new_name_bzip2, compressStream); + return bbunpack(argv, compressStream, append_ext, "bz2"); } |