summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-17 09:09:28 +0200
committerJim Meyering <meyering@redhat.com>2010-05-17 09:09:28 +0200
commitfe953ad710fa6e568d6baddf7921c04d785816e6 (patch)
tree8e83940b39cbd8c19570c966710e0859273411fd /src
parent9464ce21074a44b794d48bb9b93366d9d46bc7b5 (diff)
downloadcoreutils-fe953ad710fa6e568d6baddf7921c04d785816e6.tar.xz
build: avoid a new -Wformat-induced warning
* src/sort.c (mark_key): Add a cast-to-int of a printf field width, to placate -Wformat.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index e099640f3..8a9309aa8 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2122,7 +2122,7 @@ count_tabs (char const *text, const size_t len)
static void
mark_key (size_t offset, size_t width)
{
- printf ("%*s", offset, "");
+ printf ("%*s", (int) offset, "");
if (!width)
printf (_("^ no match for key\n"));