summaryrefslogtreecommitdiff
path: root/src/factor.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-30 02:12:23 +0000
committerPádraig Brady <P@draigBrady.com>2012-11-04 00:49:04 +0000
commit1411022cf23d81bac8176b06008898439a2c1a59 (patch)
treea278c40679f962a4d2d9191a226d349c8ae716c4 /src/factor.c
parent5e9401800b186a3746e3b50981ac11b709d3742a (diff)
downloadcoreutils-1411022cf23d81bac8176b06008898439a2c1a59.tar.xz
build: don't rely on support for '%j' printf format
* src/factor.c (print_uintmaxes): Replace with PRIuMAX. * src/join.c (check_order): Likewise. * cfg.mk (sc_check-j-printf-format): Add a syntax-check rule to flag new cases of this.
Diffstat (limited to 'src/factor.c')
-rw-r--r--src/factor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factor.c b/src/factor.c
index 4c2af9811..be5a36cd5 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -2313,7 +2313,7 @@ print_uintmaxes (uintmax_t t1, uintmax_t t0)
uintmax_t q, r;
if (t1 == 0)
- printf ("%ju", t0);
+ printf ("%"PRIuMAX, t0);
else
{
/* Use very plain code here since it seems hard to write fast code