]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Cast size_t values to int so we can print them with %d.
authorTim Kientzle <kientzle@gmail.com>
Sat, 12 Feb 2011 20:20:06 +0000 (15:20 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sat, 12 Feb 2011 20:20:06 +0000 (15:20 -0500)
SVN-Revision: 2973

contrib/untar.c

index 7c34bf7110a710346d349b8d271e457f3f10b5d6..c4cc2bf9bea2c546f014c23b82c371572767b7f4 100644 (file)
@@ -140,7 +140,7 @@ untar(FILE *a, const char *path)
                if (bytes_read < 512) {
                        fprintf(stderr,
                            "Short read on %s: expected 512, got %d\n",
-                           path, bytes_read);
+                           path, (int)bytes_read);
                        return;
                }
                if (is_end_of_archive(buff)) {
@@ -183,7 +183,7 @@ untar(FILE *a, const char *path)
                        if (bytes_read < 512) {
                                fprintf(stderr,
                                    "Short read on %s: Expected 512, got %d\n",
-                                   path, bytes_read);
+                                   path, (int)bytes_read);
                                return;
                        }
                        if (filesize < 512)