summaryrefslogtreecommitdiff
path: root/usr.bin/mkuzip
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2005-05-02 17:38:49 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2005-05-02 17:38:49 +0000
commited9302fdd6033cf83eed762010b7d0ec83feacc0 (patch)
tree6674be74da9e8ebedc346dfcd747911a9fe7f799 /usr.bin/mkuzip
parent816e8c037d7420acf179f8aa0ed3c3e57ea65e17 (diff)
downloadsrc-test-ed9302fdd6033cf83eed762010b7d0ec83feacc0.tar.gz
src-test-ed9302fdd6033cf83eed762010b7d0ec83feacc0.zip
Make WARNS=6 clean, which should make it compiling on amd64.
Submitted by: Matteo Riondato <rionda@gufi.org>
Notes
Notes: svn path=/head/; revision=145808
Diffstat (limited to 'usr.bin/mkuzip')
-rw-r--r--usr.bin/mkuzip/Makefile2
-rw-r--r--usr.bin/mkuzip/mkuzip.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mkuzip/Makefile b/usr.bin/mkuzip/Makefile
index c6b34e250c63f..11ed0831f14cb 100644
--- a/usr.bin/mkuzip/Makefile
+++ b/usr.bin/mkuzip/Makefile
@@ -6,6 +6,6 @@ MAN= mkuzip.8
DPADD= ${LIBZ}
LDADD= -lz
-WARNS?= 4
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/usr.bin/mkuzip/mkuzip.c b/usr.bin/mkuzip/mkuzip.c
index 7271b30af0ae4..d29e639590428 100644
--- a/usr.bin/mkuzip/mkuzip.c
+++ b/usr.bin/mkuzip/mkuzip.c
@@ -159,8 +159,8 @@ int main(int argc, char **argv)
lseek(fdw, offset, SEEK_SET);
if (verbose != 0)
- fprintf(stderr, "data size %llu bytes, number of clusters "
- "%u, index lengh %u bytes\n", sb.st_size,
+ fprintf(stderr, "data size %ju bytes, number of clusters "
+ "%u, index lengh %zu bytes\n", sb.st_size,
hdr.nblocks, iov[1].iov_len);
for(i = 0; i == 0 || ibuf != NULL; i++) {
@@ -194,7 +194,7 @@ int main(int argc, char **argv)
close(fdr);
if (verbose != 0)
- fprintf(stderr, "compressed data to %llu bytes, saved %lld "
+ fprintf(stderr, "compressed data to %ju bytes, saved %lld "
"bytes, %.2f%% decrease.\n", offset, (long long)(sb.st_size - offset),
100.0 * (long long)(sb.st_size - offset) / (float)sb.st_size);