]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix lzma decoder to build properly when LZMA libraries are unavailable.
authorTim Kientzle <kientzle@gmail.com>
Sat, 8 Nov 2008 21:52:59 +0000 (16:52 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sat, 8 Nov 2008 21:52:59 +0000 (16:52 -0500)
SVN-Revision: 241

libarchive/archive_read_support_compression_lzma.c

index 0f8e4b36fcbc2b69060d5b500ab1c37b1fe70d6b..49749ed856df2f17b35f3c2c29f7259d8e03f3b9 100644 (file)
@@ -130,7 +130,7 @@ lzma_reader_bid(struct archive_reader *self, const void *buff, size_t len)
  * decompression.  We can, however, still detect compressed archives
  * and emit a useful message.
  */
-static int
+static struct archive_read_source *
 lzma_reader_init(struct archive_read *a, struct archive_reader *reader,
     struct archive_read_source *upstream, const void *buff, size_t n)
 {
@@ -142,7 +142,7 @@ lzma_reader_init(struct archive_read *a, struct archive_reader *reader,
 
        archive_set_error(&a->archive, -1,
            "This version of libarchive was compiled without lzma support");
-       return (ARCHIVE_FATAL);
+       return (NULL);
 }