aboutsummaryrefslogtreecommitdiff
path: root/src/lzma/help.c
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/lzma/help.c
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/lzma/help.c')
-rw-r--r--src/lzma/help.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lzma/help.c b/src/lzma/help.c
index ad7dd861..f2a30ff6 100644
--- a/src/lzma/help.c
+++ b/src/lzma/help.c
@@ -140,13 +140,14 @@ These aren't implemented yet.
if (mem_limit == 0)
mem_limit = 1;
+ // We use PRIu64 instead of %zu to support pre-C99 libc.
puts(_("On this system and configuration, the tool will use"));
- printf(_(" * roughly %zu MiB of memory at maximum; and\n"),
- mem_limit);
- printf(N_(
- " * at maximum of one thread for (de)compression.\n\n",
- " * at maximum of %zu threads for (de)compression.\n\n",
- opt_threads), opt_threads);
+ printf(_(" * roughly %" PRIu64 " MiB of memory at maximum; and\n"),
+ (uint64_t)(mem_limit));
+ printf(N_(" * at maximum of one thread for (de)compression.\n\n",
+ " * at maximum of %" PRIu64
+ " threads for (de)compression.\n\n",
+ (uint64_t)(opt_threads)), (uint64_t)(opt_threads));
printf(_("Report bugs to <%s> (in English or Finnish).\n"),
PACKAGE_BUGREPORT);