]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Minor compile warning fix.
authorTim Kientzle <kientzle@gmail.com>
Tue, 3 Feb 2009 18:28:07 +0000 (13:28 -0500)
committerTim Kientzle <kientzle@gmail.com>
Tue, 3 Feb 2009 18:28:07 +0000 (13:28 -0500)
SVN-Revision: 541

libarchive/archive_read_support_format_zip.c

index f81d01811b1021a06837267eae2e1c485a870175..438fcd17e61dcff8853bc8aec7f49c5c2c328727 100644 (file)
@@ -172,7 +172,8 @@ archive_read_format_zip_bid(struct archive_read *a)
 {
        const char *p;
        const void *buff;
-       size_t bytes_avail, offset;
+       ssize_t bytes_avail;
+       size_t offset;
 
        if ((p = __archive_read_ahead(a, 4, NULL)) == NULL)
                return (-1);
@@ -241,7 +242,8 @@ skip_sfx(struct archive_read *a)
 {
        const void *h;
        const char *p, *q;
-       size_t skip, bytes;
+       size_t skip;
+       ssize_t bytes;
 
        /*
         * TODO: We should be able to skip forward by a bunch