aboutsummaryrefslogtreecommitdiff
path: root/src/lzmadec
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-06 19:45:27 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-06 19:45:27 +0200
commitc15a7abf66e3a70792f7444115e484c7981c8284 (patch)
tree626fcdf95a36ba8feda61d0ef0f16abe4062110f /src/lzmadec
parentIntroduced compatibility with systems that have pre-C99 (diff)
downloadxz-c15a7abf66e3a70792f7444115e484c7981c8284.tar.xz
With printf(), use PRIu64 with a cast to uint64_t instead
of %zu, because some pre-C99 libc versions don't support %zu.
Diffstat (limited to 'src/lzmadec')
-rw-r--r--src/lzmadec/lzmadec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lzmadec/lzmadec.c b/src/lzmadec/lzmadec.c
index 93eed090..fef49249 100644
--- a/src/lzmadec/lzmadec.c
+++ b/src/lzmadec/lzmadec.c
@@ -108,10 +108,12 @@ help(void)
"\n"
"With no FILE, or when FILE is -, read standard input.\n"
"\n"
-"On this configuration, the tool will use about %zu MiB of memory at maximum.\n"
+"On this configuration, the tool will use about %" PRIu64
+ " MiB of memory at maximum.\n"
"\n"
"Report bugs to <" PACKAGE_BUGREPORT "> (in English or Finnish).\n",
- argv0, (mem_limit + 512 * 1024) / (1024 * 1024));
+ argv0, (uint64_t)((mem_limit + 512 * 1024) / (1024 * 1024)));
+ // Using PRIu64 above instead of %zu to support pre-C99 libc.
exit(0);
}