]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a minor sign issue. 59/head
authorNiLuJe <ninuje@gmail.com>
Fri, 3 Jan 2014 23:44:50 +0000 (00:44 +0100)
committerNiLuJe <ninuje@gmail.com>
Fri, 3 Jan 2014 23:44:50 +0000 (00:44 +0100)
archive_read_support_format_tar.c:802:16: error: comparison between
signed and unsigned integer expressions [-Werror=sign-compare]

libarchive/archive_read_support_format_tar.c

index b39298a106e76fc988b4c5f23c539af4726d0a4c..9e2acf49c0c962cb560c0c8ffec95bc9de874f97 100644 (file)
@@ -407,7 +407,7 @@ archive_read_format_tar_options(struct archive_read *a,
  * how much unconsumed data we have floating around, and to consume
  * anything outstanding since we're going to do read_aheads
  */
-static void 
+static void
 tar_flush_unconsumed(struct archive_read *a, size_t *unconsumed)
 {
        if (*unconsumed) {
@@ -600,7 +600,7 @@ archive_read_format_tar_skip(struct archive_read *a)
        tar = (struct tar *)(a->format->data);
 
        bytes_skipped = __archive_read_consume(a,
-           tar->entry_bytes_remaining + tar->entry_padding + 
+           tar->entry_bytes_remaining + tar->entry_padding +
            tar->entry_bytes_unconsumed);
        if (bytes_skipped < 0)
                return (ARCHIVE_FATAL);
@@ -792,7 +792,8 @@ checksum(struct archive_read *a, const void *h)
 {
        const unsigned char *bytes;
        const struct archive_entry_header_ustar *header;
-       int check, i, sum;
+       int check, sum;
+       size_t i;
 
        (void)a; /* UNUSED */
        bytes = (const unsigned char *)h;
@@ -1296,7 +1297,7 @@ read_mac_metadata_blob(struct archive_read *a, struct tar *tar,
                        if (wp[0] == '/' && wp[1] != L'\0')
                                wname = wp + 1;
                }
-               /* 
+               /*
                 * If last path element starts with "._", then
                 * this is a Mac extension.
                 */
@@ -1311,7 +1312,7 @@ read_mac_metadata_blob(struct archive_read *a, struct tar *tar,
                        if (p[0] == '/' && p[1] != '\0')
                                name = p + 1;
                }
-               /* 
+               /*
                 * If last path element starts with "._", then
                 * this is a Mac extension.
                 */