diff options
author | Tim Kientzle <kientzle@gmail.com> | 2011-02-12 15:20:06 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2011-02-12 15:20:06 -0500 |
commit | 62cabdb3e2ac07179abd746fcf0116f3c4add6bd (patch) | |
tree | 356de6b4f3456bc767b93da5b275dc3ec8672f7c /contrib | |
parent | 025ba5554c3f18b342e9a04b4eeca7df0415784c (diff) | |
download | libarchive-62cabdb3e2ac07179abd746fcf0116f3c4add6bd.tar.gz |
Cast size_t values to int so we can print them with %d.
SVN-Revision: 2973
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/untar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/untar.c b/contrib/untar.c index 7c34bf71..c4cc2bf9 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) |