From: Tim Kientzle Date: Sat, 12 Feb 2011 20:20:06 +0000 (-0500) Subject: Cast size_t values to int so we can print them with %d. X-Git-Tag: v3.0.0a~695 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cabdb3e2ac07179abd746fcf0116f3c4add6bd;p=thirdparty%2Flibarchive.git Cast size_t values to int so we can print them with %d. SVN-Revision: 2973 --- diff --git a/contrib/untar.c b/contrib/untar.c index 7c34bf711..c4cc2bf9b 100644 --- a/contrib/untar.c +++ b/contrib/untar.c @@ -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)